Esempio n. 1
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->registerTask('saveApply', 'savePublish');
     // Need to explicitly define this in Joomla 3.0
     $this->registerTask('unpublish', 'unpublish');
     // Restoring a blog post is the same as publishing it
     $this->registerTask('restore', 'publish');
     // Need to explicitly define trash
     $this->registerTask('trash', 'trash');
     // Register lock / unlock
     $this->registerTask('lock', 'toggleLock');
     $this->registerTask('unlock', 'toggleLock');
     // Featuring / Unfeaturing
     $this->registerTask('unfeature', 'toggleFeatured');
     $this->registerTask('feature', 'toggleFeatured');
     // Toggling frontpage
     $this->registerTask('setFrontpage', 'toggleFrontpage');
     $this->registerTask('removeFrontpage', 'toggleFrontpage');
     // Toggle global template
     $this->registerTask('setGlobalTemplate', 'toggleGlobalTemplate');
     $this->registerTask('removeGlobalTemplate', 'toggleGlobalTemplate');
     // Toggle publish
     $this->registerTask('publishTemplate', 'toggleStateTemplate');
     $this->registerTask('unpublishTemplate', 'toggleStateTemplate');
 }
Esempio n. 2
0
 function __construct()
 {
     parent::__construct();
     $this->registerTask('apply', 'save');
     $this->registerTask('addTheme', 'addTheme');
     $this->registerTask('removeSetting', 'removeSetting');
 }
Esempio n. 3
0
 function __construct()
 {
     parent::__construct();
     $this->registerTask('apply', 'save');
     $this->registerTask('addIndexing', 'saveIndexing');
     $this->registerTask('removeIndexing', 'saveIndexing');
 }
Esempio n. 4
0
 function __construct()
 {
     parent::__construct();
     $this->registerTask('add', 'edit');
     $this->registerTask('publish', 'publish');
     $this->registerTask('unpublish', 'unpublish');
 }
Esempio n. 5
0
 public function __construct()
 {
     parent::__construct();
     $this->registerTask('apply', 'save');
     $this->registerTask('savenew', 'save');
     $this->registerTask('publish', 'publish');
     $this->registerTask('unpublish', 'unpublish');
 }
Esempio n. 6
0
 public function __construct($options = array())
 {
     parent::__construct($options);
     $this->registerTask('publish', 'togglePublish');
     $this->registerTask('unpublish', 'togglePublish');
     $this->registerTask('archive', 'toggleArchive');
     $this->registerTask('unarchive', 'toggleArchive');
 }
Esempio n. 7
0
 function __construct()
 {
     // @task: Check for acl rules.
     $this->checkAccess('user');
     parent::__construct();
     $this->registerTask('add', 'edit');
     $this->registerTask('apply', 'save');
 }
Esempio n. 8
0
 public function __construct()
 {
     parent::__construct();
     // Save tasks
     $this->registerTask('apply', 'save');
     // Toggle featured status for bloggers
     $this->registerTask('feature', 'toggleFeatured');
     $this->registerTask('unfeature', 'toggleFeatured');
 }
Esempio n. 9
0
 public function __construct()
 {
     parent::__construct();
     // Save
     $this->registerTask('apply', 'save');
     // Publish / Unpublish
     $this->registerTask('publish', 'togglePublish');
     $this->registerTask('unpublish', 'togglePublish');
 }
Esempio n. 10
0
 function __construct()
 {
     // @task: Check for acl rules.
     $this->checkAccess('user');
     parent::__construct();
     $this->registerTask('unfeature', 'toggleFeatured');
     $this->registerTask('feature', 'toggleFeatured');
     $this->registerTask('add', 'edit');
 }
Esempio n. 11
0
 public function __construct($options = array())
 {
     parent::__construct($options);
     $this->registerTask('publish', 'togglePublish');
     $this->registerTask('unpublish', 'togglePublish');
     // Register tasks for moderation
     $this->registerTask('approve', 'moderate');
     $this->registerTask('reject', 'moderate');
 }
Esempio n. 12
0
 public function __construct()
 {
     parent::__construct();
     $this->registerTask('add', 'edit');
     // Saving
     $this->registerTask('savenew', 'save');
     $this->registerTask('apply', 'save');
     $this->registerTask('approve', 'respond');
     $this->registerTask('reject', 'respond');
     $this->registerTask('publish', 'togglePublish');
     $this->registerTask('unpublish', 'togglePublish');
 }
Esempio n. 13
0
 function __construct()
 {
     // @task: Check for acl rules.
     $this->checkAccess('category');
     parent::__construct();
     $this->registerTask('add', 'edit');
     $this->registerTask('publish', 'publish');
     // In Joomla 3.0, it seems like we need to explicitly set unpublish
     $this->registerTask('unpublish', 'unpublish');
     $this->registerTask('orderup', 'orderup');
     $this->registerTask('orderdown', 'orderdown');
 }
Esempio n. 14
0
 function __construct()
 {
     parent::__construct();
     $this->registerTask('add', 'edit');
     $this->registerTask('unfeature', 'toggleFeatured');
     $this->registerTask('feature', 'toggleFeatured');
     $this->registerTask('saveApply', 'savePublish');
     // Need to explicitly define this in Joomla 3.0
     $this->registerTask('unpublish', 'unpublish');
     $this->registerTask('restore', 'publish');
     // Need to explicitly define trash
     $this->registerTask('trash', 'trash');
 }
Esempio n. 15
0
 public function __construct()
 {
     parent::__construct();
     // Saving
     $this->registerTask('savenew', 'save');
     $this->registerTask('saveclose', 'save');
     $this->registerTask('apply', 'save');
     // Toggle default
     $this->registerTask('setDefault', 'toggleDefault');
     $this->registerTask('removeDefault', 'toggleDefault');
     // Register the publish and unpublish actions
     $this->registerTask('publish', 'togglePublish');
     $this->registerTask('unpublish', 'togglePublish');
 }
Esempio n. 16
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     // Toggle publishing for fields
     $this->registerTask('publish', 'togglePublish');
     $this->registerTask('unpublish', 'togglePublish');
     // Toggle required for fields
     $this->registerTask('setRequired', 'toggleRequire');
     $this->registerTask('removeRequired', 'toggleRequire');
     $this->registerTask('apply', 'save');
     $this->registerTask('savenew', 'save');
     $this->registerTask('publishgroup', 'togglePublishGroup');
     $this->registerTask('unpublishgroup', 'togglePublishGroup');
     $this->registerTask('applyGroup', 'saveGroup');
     $this->registerTask('saveNewGroup', 'saveGroup');
 }
Esempio n. 17
0
 /**
  * Constructor
  *
  * @since 0.1
  */
 function __construct()
 {
     // Include the tables in path
     JTable::addIncludePath(EBLOG_TABLES);
     parent::__construct();
 }
Esempio n. 18
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->registerTask('apply', 'save');
     $this->registerTask('save', 'save');
 }
Esempio n. 19
0
 public function __construct()
 {
     parent::__construct();
 }
Esempio n. 20
0
 public function __construct($config = array())
 {
     parent::__construct($config);
 }
Esempio n. 21
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->registerTask('publish', 'togglePublish');
     $this->registerTask('unpublish', 'togglePublish');
 }
Esempio n. 22
0
 public function __construct($options = array())
 {
     parent::__construct($options);
 }
Esempio n. 23
0
 public function __construct()
 {
     parent::__construct();
     $this->registerTask('applyForm', 'saveForm');
 }