示例#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');
 }
示例#2
0
 function __construct()
 {
     parent::__construct();
     $this->registerTask('apply', 'save');
     $this->registerTask('addTheme', 'addTheme');
     $this->registerTask('removeSetting', 'removeSetting');
 }
示例#3
0
 function __construct()
 {
     parent::__construct();
     $this->registerTask('apply', 'save');
     $this->registerTask('addIndexing', 'saveIndexing');
     $this->registerTask('removeIndexing', 'saveIndexing');
 }
示例#4
0
 function __construct()
 {
     parent::__construct();
     $this->registerTask('add', 'edit');
     $this->registerTask('publish', 'publish');
     $this->registerTask('unpublish', 'unpublish');
 }
示例#5
0
 public function __construct()
 {
     parent::__construct();
     $this->registerTask('apply', 'save');
     $this->registerTask('savenew', 'save');
     $this->registerTask('publish', 'publish');
     $this->registerTask('unpublish', 'unpublish');
 }
示例#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');
 }
示例#7
0
 function __construct()
 {
     // @task: Check for acl rules.
     $this->checkAccess('user');
     parent::__construct();
     $this->registerTask('add', 'edit');
     $this->registerTask('apply', 'save');
 }
示例#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');
 }
示例#9
0
 public function __construct()
 {
     parent::__construct();
     // Save
     $this->registerTask('apply', 'save');
     // Publish / Unpublish
     $this->registerTask('publish', 'togglePublish');
     $this->registerTask('unpublish', 'togglePublish');
 }
示例#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');
 }
示例#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');
 }
示例#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');
 }
示例#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');
 }
示例#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');
 }
示例#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');
 }
示例#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');
 }
示例#17
0
 /**
  * Constructor
  *
  * @since 0.1
  */
 function __construct()
 {
     // Include the tables in path
     JTable::addIncludePath(EBLOG_TABLES);
     parent::__construct();
 }
示例#18
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->registerTask('apply', 'save');
     $this->registerTask('save', 'save');
 }
示例#19
0
 public function __construct()
 {
     parent::__construct();
 }
示例#20
0
 public function __construct($config = array())
 {
     parent::__construct($config);
 }
示例#21
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->registerTask('publish', 'togglePublish');
     $this->registerTask('unpublish', 'togglePublish');
 }
示例#22
0
 public function __construct($options = array())
 {
     parent::__construct($options);
 }
示例#23
0
 public function __construct()
 {
     parent::__construct();
     $this->registerTask('applyForm', 'saveForm');
 }