Use autoload for \Mibew\Tread class

This commit is contained in:
Dmitriy Simushev 2013-12-26 15:28:34 +00:00
parent bd5d6a277d
commit 532a08763f
21 changed files with 20 additions and 15 deletions

View File

@ -17,13 +17,13 @@
// Import namespaces and classes of the core
use Mibew\Settings;
use Mibew\Thread;
// Initialize libraries
require_once(dirname(__FILE__).'/libs/init.php');
require_once(MIBEW_FS_ROOT.'/libs/chat.php');
require_once(MIBEW_FS_ROOT.'/libs/operator.php');
require_once(MIBEW_FS_ROOT.'/libs/groups.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/thread.php');
$referer = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : "";
if($referer && isset($_SESSION['threadid'])) {

View File

@ -17,6 +17,7 @@
// Import namespaces and classes of the core
use Mibew\Settings;
use Mibew\Thread;
// Initialize libraries
require_once(dirname(__FILE__).'/libs/init.php');
@ -27,7 +28,6 @@ require_once(MIBEW_FS_ROOT.'/libs/expand.php');
require_once(MIBEW_FS_ROOT.'/libs/captcha.php');
require_once(MIBEW_FS_ROOT.'/libs/invitation.php');
require_once(MIBEW_FS_ROOT.'/libs/track.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/thread.php');
require_once(MIBEW_FS_ROOT.'/libs/interfaces/style.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/style.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/chat_style.php');

View File

@ -21,7 +21,6 @@ use Mibew\Settings;
// Initialize libraries
require_once(dirname(__FILE__).'/libs/init.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/thread.php');
require_once(MIBEW_FS_ROOT.'/libs/track.php');
require_once(MIBEW_FS_ROOT.'/libs/statistics.php');
require_once(MIBEW_FS_ROOT.'/libs/cron.php');

View File

@ -18,10 +18,10 @@
// Import namespaces and classes of the core
use Mibew\Database;
use Mibew\Settings;
use Mibew\Thread;
// Initialize libraries
require_once(MIBEW_FS_ROOT.'/libs/track.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/thread.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/mibew_api.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/mibew_api_interaction.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/mibew_api_chat_interaction.php');

View File

@ -15,10 +15,10 @@
* limitations under the License.
*/
namespace Mibew;
// Import namespaces and classes of the core
use Mibew\Database;
use Mibew\EventDispatcher;
use Mibew\Settings;
use \ThreadProcessor;
/**
* Represents a chat thread

View File

@ -17,6 +17,7 @@
// Import namespaces and classes of the core
use Mibew\Settings;
use Mibew\Thread;
/**
* Incapsulates thread api and thread processing functions.
@ -58,7 +59,7 @@ class ThreadProcessor extends ClientSideProcessor {
*
* @param int $thread_id Id of the thread
* @param int $last_token Last token of the thread
* @return Thread
* @return \Mibew\Thread
* @throws ThreadProcessorException
*/
public static function getThread($thread_id, $last_token) {

View File

@ -19,6 +19,7 @@
use Mibew\Database;
use Mibew\EventDispatcher;
use Mibew\Settings;
use Mibew\Thread;
/**
* Incapsulates awaiting users list api related functions.

View File

@ -18,6 +18,7 @@
// Import namespaces and classes of the core
use Mibew\Database;
use Mibew\Settings;
use Mibew\Thread;
/**
* Check invitation state for specified visitior

View File

@ -18,6 +18,7 @@
// Import namespaces and classes of the core
use Mibew\Database;
use Mibew\Settings;
use Mibew\Thread;
function get_statistics_query($type)
{

View File

@ -18,6 +18,7 @@
// Import namespaces and classes of the core
use Mibew\Database;
use Mibew\Settings;
use Mibew\Thread;
// Initialize libraries
require_once(MIBEW_FS_ROOT.'/libs/chat.php');

View File

@ -17,6 +17,7 @@
// Import namespaces and classes of the core
use Mibew\Settings;
use Mibew\Thread;
// Initialize libraries
require_once(dirname(__FILE__).'/libs/init.php');
@ -24,7 +25,6 @@ require_once(MIBEW_FS_ROOT.'/libs/chat.php');
require_once(MIBEW_FS_ROOT.'/libs/expand.php');
require_once(MIBEW_FS_ROOT.'/libs/groups.php');
require_once(MIBEW_FS_ROOT.'/libs/notify.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/thread.php');
require_once(MIBEW_FS_ROOT.'/libs/interfaces/style.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/style.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/chat_style.php');

View File

@ -17,6 +17,7 @@
// Import namespaces and classes of the core
use Mibew\Settings;
use Mibew\Thread;
// Initialize libraries
require_once(dirname(dirname(__FILE__)).'/libs/init.php');
@ -26,7 +27,6 @@ require_once(MIBEW_FS_ROOT.'/libs/groups.php');
require_once(MIBEW_FS_ROOT.'/libs/operator.php');
require_once(MIBEW_FS_ROOT.'/libs/pagination.php');
require_once(MIBEW_FS_ROOT.'/libs/expand.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/thread.php');
require_once(MIBEW_FS_ROOT.'/libs/interfaces/style.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/style.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/chat_style.php');

View File

@ -17,13 +17,13 @@
// Import namespaces and classes of the core
use Mibew\Database;
use Mibew\Thread;
// Initialize libraries
require_once(dirname(dirname(__FILE__)).'/libs/init.php');
require_once(MIBEW_FS_ROOT.'/libs/chat.php');
require_once(MIBEW_FS_ROOT.'/libs/operator.php');
require_once(MIBEW_FS_ROOT.'/libs/pagination.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/thread.php');
require_once(MIBEW_FS_ROOT.'/libs/interfaces/style.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/style.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/page_style.php');

View File

@ -17,6 +17,7 @@
// Import namespaces and classes of the core
use Mibew\Database;
use Mibew\Thread;
// Initialize libraries
require_once(dirname(dirname(__FILE__)).'/libs/init.php');

View File

@ -19,7 +19,6 @@ require_once(dirname(dirname(__FILE__)).'/libs/init.php');
require_once(MIBEW_FS_ROOT.'/libs/invitation.php');
require_once(MIBEW_FS_ROOT.'/libs/track.php');
require_once(MIBEW_FS_ROOT.'/libs/operator.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/thread.php');
$operator = check_login();

View File

@ -17,6 +17,7 @@
// Import namespaces and classes of the core
use Mibew\Database;
use Mibew\Thread;
// Initialize libraries
require_once(dirname(dirname(__FILE__)).'/libs/init.php');
@ -24,7 +25,6 @@ require_once(MIBEW_FS_ROOT.'/libs/operator.php');
require_once(MIBEW_FS_ROOT.'/libs/chat.php');
require_once(MIBEW_FS_ROOT.'/libs/expand.php');
require_once(MIBEW_FS_ROOT.'/libs/groups.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/thread.php');
require_once(MIBEW_FS_ROOT.'/libs/interfaces/style.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/style.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/chat_style.php');

View File

@ -17,6 +17,7 @@
// Import namespaces and classes of the core
use Mibew\Database;
use Mibew\Thread;
// Initialize libraries
require_once(dirname(dirname(__FILE__)).'/libs/init.php');

View File

@ -22,7 +22,6 @@ require_once(MIBEW_FS_ROOT.'/libs/operator.php');
require_once(MIBEW_FS_ROOT.'/libs/groups.php');
require_once(MIBEW_FS_ROOT.'/libs/invitation.php');
require_once(MIBEW_FS_ROOT.'/libs/track.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/thread.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/mibew_api.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/mibew_api_interaction.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/mibew_api_users_interaction.php');

View File

@ -17,6 +17,7 @@
// Import namespaces and classes of the core
use Mibew\Database;
use Mibew\Thread;
// Initialize libraries
require_once(dirname(dirname(__FILE__)).'/libs/init.php');

View File

@ -22,7 +22,6 @@ require_once(MIBEW_FS_ROOT.'/libs/invitation.php');
require_once(MIBEW_FS_ROOT.'/libs/groups.php');
require_once(MIBEW_FS_ROOT.'/libs/captcha.php');
require_once(MIBEW_FS_ROOT.'/libs/notify.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/thread.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/mibew_api.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/mibew_api_interaction.php');
require_once(MIBEW_FS_ROOT.'/libs/classes/mibew_api_chat_interaction.php');

View File

@ -17,6 +17,7 @@
// Import namespaces and classes of the core
use Mibew\Settings;
use Mibew\Thread;
// Initialize libraries
require_once(dirname(__FILE__).'/libs/init.php');