예제 #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
파일: meta.php 프로젝트: alexinteam/joomla3
 function __construct()
 {
     parent::__construct();
     $this->registerTask('apply', 'save');
     $this->registerTask('addIndexing', 'saveIndexing');
     $this->registerTask('removeIndexing', 'saveIndexing');
 }
예제 #4
0
 public function __construct()
 {
     parent::__construct();
     $this->registerTask('apply', 'save');
     $this->registerTask('savenew', 'save');
     $this->registerTask('publish', 'publish');
     $this->registerTask('unpublish', 'unpublish');
 }
예제 #5
0
파일: tag.php 프로젝트: alexinteam/joomla3
 function edit()
 {
     // @task: Check for acl rules.
     $this->checkAccess('tag');
     JRequest::setVar('view', 'tag');
     JRequest::setVar('tagid', JRequest::getVar('tagid', '', 'REQUEST'));
     parent::display();
 }
예제 #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
 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');
 }
예제 #8
0
 public function __construct()
 {
     parent::__construct();
     // Save
     $this->registerTask('apply', 'save');
     // Publish / Unpublish
     $this->registerTask('publish', 'togglePublish');
     $this->registerTask('unpublish', 'togglePublish');
 }
예제 #9
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');
 }
예제 #10
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');
 }
예제 #11
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');
 }
예제 #12
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');
 }
예제 #13
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');
 }
예제 #14
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->registerTask('publish', 'togglePublish');
     $this->registerTask('unpublish', 'togglePublish');
 }
예제 #15
0
 public function __construct($config = array())
 {
     parent::__construct($config);
 }
예제 #16
0
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->registerTask('apply', 'save');
     $this->registerTask('save', 'save');
 }
예제 #17
0
 function edit()
 {
     // @task: Check for acl rules.
     $this->checkAccess('blog');
     JRequest::setVar('view', 'blog');
     JRequest::setVar('blogid', JRequest::getVar('blogid', '', 'REQUEST'));
     JRequest::setVar('draft_id', JRequest::getVar('draft_id', '', 'REQUEST'));
     JRequest::setVar('approval', JRequest::getVar('approval', '', 'REQUEST'));
     parent::display();
 }
예제 #18
0
 public function __construct($options = array())
 {
     parent::__construct($options);
 }
예제 #19
0
파일: acl.php 프로젝트: alexinteam/joomla3
 function add()
 {
     // @task: Check for acl rules.
     $this->checkAccess('acl');
     JRequest::setVar('view', 'acl');
     JRequest::setVar('add', true);
     JRequest::setVar('type', 'assigned');
     parent::display();
 }
예제 #20
0
 public function __construct()
 {
     parent::__construct();
 }
예제 #21
0
 /**
  * Constructor
  *
  * @since 0.1
  */
 function __construct()
 {
     // Include the tables in path
     JTable::addIncludePath(EBLOG_TABLES);
     parent::__construct();
 }
예제 #22
0
    ?>
" />
			<api name="MetaWeblog" blogID="1" preferred="false" apiLink="<?php 
    echo $xmlrpc;
    ?>
" />
		</apis>
	</service>
</rsd>
<?php 
    $mainframe->close();
} else {
    /// check the format...else the ajax will failed.
    $document = JFactory::getDocument();
    $doc_type = $document->getType();
    if ($doc_type == 'html') {
        $attribs = array('type' => 'application/rsd+xml', 'title' => 'RSD');
        $xmlLink = JRoute::_('index.php?option=com_easyblog&rsd=RealSimpleDiscovery');
        $document->addHeadLink($xmlLink, 'EditURI', 'rel', $attribs);
        $wlwLink = rtrim(JURI::root(), '/') . '/components/com_easyblog/classes/wlwmanifest.xml';
        $document->addHeadLink($wlwLink, 'wlwmanifest', 'rel', array('type' => 'application/wlwmanifest+xml'));
    }
}
// Get controller name if specified
$controllerName = JRequest::getCmd('controller', '');
// Create controller
$controller = EasyBlogController::getInstance($controllerName);
// Perform the Request task
$controller->execute(JRequest::getCmd('task', null, 'default'));
// Redirect if set by the controller
$controller->redirect();
예제 #23
0
 public function __construct()
 {
     parent::__construct();
     $this->registerTask('applyForm', 'saveForm');
 }