/**
  * put your comment there...
  * 
  */
 public function __construct($mysqlDriver)
 {
     // Hookable!
     parent::__construct();
     // Internal DB engine!
     $this->wpdb = $mysqlDriver;
 }
 /**
  * put your comment there...
  * 
  * @param mixed $attributes
  * @param mixed $content
  * @return CJT_Controllers_Coupling_Shortcode
  */
 public function __construct($attributes, $content)
 {
     // Hookable initialization!
     parent::__construct();
     // Initialize.
     $this->attributes = $attributes;
     $this->content = $content;
 }
 /**
  * put your comment there...
  * 
  * @param mixed $prefix
  * @param mixed $loadMethod
  * @return CJTExtensions
  */
 public function __construct($prefix = self::PREFIXS, $loadMethod = self::LOAD_METHOD)
 {
     // Hookable!
     parent::__construct();
     // Initializing!
     $this->prefix = explode(',', $prefix);
     $this->loadMethod = $loadMethod;
 }
 /**
  * put your comment there...
  * 
  * @param mixed $table
  * @return CJTxTable
  */
 public function __construct($dbDriver, $table, $key = array('id'))
 {
     // Hookable!
     parent::__construct();
     // Reset intenal item object!
     $this->setItem();
     // Initialize!
     $this->dbDriver = $dbDriver;
     $this->name = "#__cjtoolbox_{$table}";
     $this->key = $key;
     // Read table fields.
     $this->fields = $this->dbDriver->getColumns($this->table());
 }
Exemple #5
0
 /**
  * put your comment there...
  * 
  * @param mixed $info
  * @param mixed $params
  * @return CJTView
  */
 public function __construct($info, $params = null)
 {
     // Initialize vars!
     $this->viewInfo = $info;
     $this->params = $params ? $params : array();
     // Initialize events engine!
     parent::__construct();
     // Fire created event!
     $this->oncreated($info);
 }
 /**
  * put your comment there...
  * 
  * @param mixed $hasView
  * @param mixed $request
  * @param mixed $overrideControllerPath
  * @param mixed $overrideContollerPrefix
  * @return CJTController
  */
 public function __construct($hasView = null, $request = null, $overrideControllerPath = null, $overrideContollerPrefix = null)
 {
     // Initialize hookable!
     parent::__construct();
     // Read request parameters.
     $this->request = array_merge((array) $_REQUEST, (array) $request);
     // Create default model.
     if (isset($this->controllerInfo['model'])) {
         // E_ALL complain!
         if (!isset($this->controllerInfo['model_file'])) {
             $this->controllerInfo['model_file'] = null;
         }
         $this->model = CJTModel::create($this->controllerInfo['model'], $this->request, $this->controllerInfo['model_file'], dirname($overrideControllerPath), $overrideContollerPrefix);
     }
     // Create default view.
     if ($hasView === null) {
         // Default value for $hasView = true
         // Request/passed parameters has priority over controller default view!
         $view = $this->ongetviewname(isset($this->request['view']) ? $this->request['view'] : (isset($this->controllerInfo['view']) ? $this->controllerInfo['view'] : null));
         if ($view) {
             $this->view = self::getView($view, null, dirname($overrideControllerPath), $overrideContollerPrefix)->setModel($this->model)->setRequest($this->request);
         }
     }
 }
 /**
  * put your comment there...
  * 
  */
 protected function __construct()
 {
     // Hookable!
     parent::__construct();
     // Allow access points to utilize from CJTPlugin functionality
     // even if the call is recursive inside getInstance/construct methods!!!
     self::$instance = $this;
     // Read vars!
     $dbVersion = $this->onloaddbversion(get_option(self::DB_VERSION_OPTION_NAME));
     $this->installed = $dbVersion == self::DB_VERSION;
     // Load plugin and all installed extensions!.
     $this->load();
     $this->loadExtensions();
     // Run MAIN access point!
     $this->main();
 }
 /**
  * put your comment there...
  * 
  */
 public function __construct($defaultController = 'blocks')
 {
     // Initialize Hookable.
     parent::__construct();
     // Overrides controllers path using current Access Point model class path
     $accessPointClassLoader =& CJT_Framework_Autoload_Loader::findClassLoader(get_class($this));
     if ($accessPointClassLoader) {
         $this->overrideControllersPath = $accessPointClassLoader->getPath() . DIRECTORY_SEPARATOR . 'controllers';
         $this->overrideControllersPrefix = $accessPointClassLoader->getPrefix();
     }
     // Initialize!
     $this->controllerName = $this->ongetdefaultcontrollername(isset($_REQUEST['controller']) ? $_REQUEST['controller'] : $defaultController);
 }
 /**
  * Initialize Plugin. 
  * 
  * @return void
  */
 protected function __construct()
 {
     // Initialize hookable!
     parent::__construct();
     // Load configuration.
     self::$config = $this->onloadconfiguration(require self::resolvePath('configuration.inc.php'));
     // Initialize vars!
     self::import('framework:db:mysql:queue-driver.inc.php');
     $this->dbDriver = $this->onloaddbdriver(new CJTMYSQLQueueDriver($GLOBALS['wpdb']));
 }