コード例 #1
0
ファイル: blogs.php プロジェクト: BetterBetterBetter/B3App
 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
ファイル: themes.php プロジェクト: alexinteam/joomla3
 function __construct()
 {
     parent::__construct();
     $this->registerTask('apply', 'save');
     $this->registerTask('addTheme', 'addTheme');
     $this->registerTask('removeSetting', 'removeSetting');
 }
コード例 #3
0
ファイル: meta.php プロジェクト: alexinteam/joomla3
 function __construct()
 {
     parent::__construct();
     $this->registerTask('apply', 'save');
     $this->registerTask('addIndexing', 'saveIndexing');
     $this->registerTask('removeIndexing', 'saveIndexing');
 }
コード例 #4
0
ファイル: tag.php プロジェクト: alexinteam/joomla3
 function __construct()
 {
     parent::__construct();
     $this->registerTask('add', 'edit');
     $this->registerTask('publish', 'publish');
     $this->registerTask('unpublish', 'unpublish');
 }
コード例 #5
0
ファイル: feeds.php プロジェクト: knigherrant/decopatio
 public function __construct()
 {
     parent::__construct();
     $this->registerTask('apply', 'save');
     $this->registerTask('savenew', 'save');
     $this->registerTask('publish', 'publish');
     $this->registerTask('unpublish', 'unpublish');
 }
コード例 #6
0
ファイル: posts.php プロジェクト: BetterBetterBetter/B3App
 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
ファイル: user.php プロジェクト: alexinteam/joomla3
 function __construct()
 {
     // @task: Check for acl rules.
     $this->checkAccess('user');
     parent::__construct();
     $this->registerTask('add', 'edit');
     $this->registerTask('apply', 'save');
 }
コード例 #8
0
ファイル: bloggers.php プロジェクト: knigherrant/decopatio
 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
ファイル: comment.php プロジェクト: knigherrant/decopatio
 public function __construct()
 {
     parent::__construct();
     // Save
     $this->registerTask('apply', 'save');
     // Publish / Unpublish
     $this->registerTask('publish', 'togglePublish');
     $this->registerTask('unpublish', 'togglePublish');
 }
コード例 #10
0
ファイル: users.php プロジェクト: alexinteam/joomla3
 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
ファイル: comments.php プロジェクト: knigherrant/decopatio
 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
ファイル: teamblogs.php プロジェクト: knigherrant/decopatio
 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
ファイル: category.php プロジェクト: alexinteam/joomla3
 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
ファイル: blogs.php プロジェクト: alexinteam/joomla3
 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
ファイル: tags.php プロジェクト: knigherrant/decopatio
 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
ファイル: fields.php プロジェクト: knigherrant/decopatio
 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
ファイル: oauth.php プロジェクト: knigherrant/decopatio
 /**
  * Constructor
  *
  * @since 0.1
  */
 function __construct()
 {
     // Include the tables in path
     JTable::addIncludePath(EBLOG_TABLES);
     parent::__construct();
 }
コード例 #18
0
ファイル: acl.php プロジェクト: knigherrant/decopatio
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->registerTask('apply', 'save');
     $this->registerTask('save', 'save');
 }
コード例 #19
0
ファイル: spools.php プロジェクト: knigherrant/decopatio
 public function __construct()
 {
     parent::__construct();
 }
コード例 #20
0
ファイル: teamblogs.php プロジェクト: knigherrant/decopatio
 public function __construct($config = array())
 {
     parent::__construct($config);
 }
コード例 #21
0
ファイル: blocks.php プロジェクト: knigherrant/decopatio
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->registerTask('publish', 'togglePublish');
     $this->registerTask('unpublish', 'togglePublish');
 }
コード例 #22
0
ファイル: compiler.php プロジェクト: knigherrant/decopatio
 public function __construct($options = array())
 {
     parent::__construct($options);
 }
コード例 #23
0
ファイル: autoposting.php プロジェクト: alexinteam/joomla3
 public function __construct()
 {
     parent::__construct();
     $this->registerTask('applyForm', 'saveForm');
 }