/**
  * 
  * Initialize new object.
  * 
  * @return void
  */
 public function __construct()
 {
     // Initialize parent!
     parent::__construct();
     // Add actions.
     $this->registryAction('install');
 }
 /**
  * put your comment there...
  * 
  */
 public function __construct()
 {
     parent::__construct();
     // Register actions!
     $this->registryAction('install');
     $this->registryAction('dismissNotice');
 }
 /**
  * put your comment there...
  * 
  */
 public function __construct()
 {
     parent::__construct();
     // Actions.
     $this->registryAction('manageForm');
     $this->registryAction('save');
     $this->registryAction('restoreDefault');
 }
 /**
  * 
  * Initialize new object.
  * 
  * @return void
  */
 public function __construct()
 {
     // Initialize parent!
     parent::__construct();
     // Add actions.
     $this->registryAction('display');
     $this->registryAction('delete');
 }
Beispiel #5
0
 /**
  * 
  * Initialize new object.
  * 
  * @return void
  */
 public function __construct()
 {
     // Initialize parent!
     parent::__construct();
     // Add actions.
     $this->registryAction('getReadmeFile');
     $this->registryAction('getLicenseFile');
 }
 /**
  * Initialize controller object.
  * 
  * @see CJTController for more details
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     // Supported actions.
     add_action('wp_ajax_cjtoolbox_create', array(&$this, '_doAction'));
     add_action('wp_ajax_cjtoolbox_delete', array(&$this, '_doAction'));
     add_action('wp_ajax_cjtoolbox_list', array(&$this, '_doAction'));
     add_action('wp_ajax_cjtoolbox_restore', array(&$this, '_doAction'));
 }
 /**
  * put your comment there...
  * 
  */
 public function __construct()
 {
     parent::__construct();
     // Actions!
     $this->registryAction('getList');
     $this->registryAction('delete');
     $this->registryAction('save');
     $this->registryAction('switch');
 }
Beispiel #8
0
 /**
  * put your comment there...
  * 
  */
 public function __construct()
 {
     parent::__construct();
     // Register actions!
     $this->registryAction('activationFormView');
     $this->registryAction('getState');
     $this->registryAction('license');
     $this->registryAction('reset');
 }
 /**
  * Initialize controller object.
  * 
  * @see CJTController for more details
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     // Register action.
     $this->registryAction('create_block');
     $this->registryAction('get_view');
     $this->registryAction('save_blocks');
     $this->registryAction('saveOrder');
     $this->registryAction('loadBlock');
 }
 /**
  * 
  * Initialize new object.
  * 
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     // Registry controller actions.
     $this->registryAction('display');
     $this->registryAction('embedded');
     $this->registryAction('link');
     $this->registryAction('unlink');
     $this->registryAction('unlinkAll');
 }
Beispiel #11
0
 /**
  * put your comment there...
  * 
  */
 public function __construct()
 {
     parent::__construct();
     // Actions!
     $this->registryAction('getBlockBy');
     $this->registryAction('getAPOP');
     $this->registryAction('loadUrl');
     $this->registryAction('getCode');
     $this->registryAction('downloadCodeFile');
 }
Beispiel #12
0
 /**
  * 
  * Initialize new object.
  * 
  * @return void
  */
 public function __construct()
 {
     // Initialize parent!
     parent::__construct();
     // Add actions.
     $this->registryAction('edit');
     $this->registryAction('save');
     $this->registryAction('info');
     $this->registryAction('getTemplateBy');
 }
Beispiel #13
0
 /**
  * put your comment there...
  * 
  */
 public function __construct($hasView = null, $request = null)
 {
     // Initialize parent!
     parent::__construct($hasView, $request);
     // Register actions!
     $this->registryAction('getBlocksList');
     $this->registryAction('getShortcode');
     $this->registryAction('getBlockParametersForm');
     // @TODO: $this->defaultCapability is risky if  there is any admin actions added later, please remove!
     $this->defaultCapability = array('edit_posts', 'edit_pages');
 }
 /**
  * Initialize controller object.
  * 
  * @see CJTController for more details
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     // Supported actions.
     add_action('wp_ajax_cjtoolbox_get_info_view', array(&$this, '_doAction'));
     add_action('wp_ajax_cjtoolbox_set_property', array(&$this, '_doAction'));
     add_action('wp_ajax_cjtoolbox_get_revision', array(&$this, '_doAction'));
     add_action('wp_ajax_cjtoolbox_get_revisions', array(&$this, '_doAction'));
     // Redirects
     $this->registryAction('getBlockBy');
     $this->registryAction('getAPOP');
     $this->registryAction('restoreRevision');
     $this->registryAction('loadUrl');
     $this->registryAction('downloadCodeFile');
 }
Beispiel #15
0
 /**
  * Initialize post controller.
  * 
  * @return void
  */
 public function __construct($_unused_hasView = null, $request = null)
 {
     // Initialize parent.
     parent::__construct(false, $request);
     // Initialize.
     $postId = $this->getRequestParameter('post');
     // Instantiate model object.
     $this->model = self::getModel('metabox', array($postId));
     // Don't regiter Ajax actions unless AAP (Ajax Access Point) is loaded!
     $connectedObject =& CJTAccessPoint::isConnected();
     if ($connectedObject && $connectedObject->getName() == 'ajax') {
         $this->registryAction('create');
         $this->registryAction('delete');
     } else {
         if ($this->model->doPost()) {
             // Add metabox.
             $this->showMetabox();
         }
     }
 }