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'); }
function __construct() { parent::__construct(); $this->registerTask('apply', 'save'); $this->registerTask('addTheme', 'addTheme'); $this->registerTask('removeSetting', 'removeSetting'); }
function __construct() { parent::__construct(); $this->registerTask('apply', 'save'); $this->registerTask('addIndexing', 'saveIndexing'); $this->registerTask('removeIndexing', 'saveIndexing'); }
public function __construct() { parent::__construct(); $this->registerTask('apply', 'save'); $this->registerTask('savenew', 'save'); $this->registerTask('publish', 'publish'); $this->registerTask('unpublish', 'unpublish'); }
function edit() { // @task: Check for acl rules. $this->checkAccess('tag'); JRequest::setVar('view', 'tag'); JRequest::setVar('tagid', JRequest::getVar('tagid', '', 'REQUEST')); parent::display(); }
public function __construct($options = array()) { parent::__construct($options); $this->registerTask('publish', 'togglePublish'); $this->registerTask('unpublish', 'togglePublish'); $this->registerTask('archive', 'toggleArchive'); $this->registerTask('unarchive', 'toggleArchive'); }
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'); }
public function __construct() { parent::__construct(); // Save $this->registerTask('apply', 'save'); // Publish / Unpublish $this->registerTask('publish', 'togglePublish'); $this->registerTask('unpublish', 'togglePublish'); }
public function __construct() { parent::__construct(); // Save tasks $this->registerTask('apply', 'save'); // Toggle featured status for bloggers $this->registerTask('feature', 'toggleFeatured'); $this->registerTask('unfeature', 'toggleFeatured'); }
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'); }
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'); }
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'); }
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'); }
public function __construct($config = array()) { parent::__construct($config); $this->registerTask('publish', 'togglePublish'); $this->registerTask('unpublish', 'togglePublish'); }
public function __construct($config = array()) { parent::__construct($config); }
public function __construct($config = array()) { parent::__construct($config); $this->registerTask('apply', 'save'); $this->registerTask('save', 'save'); }
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(); }
public function __construct($options = array()) { parent::__construct($options); }
function add() { // @task: Check for acl rules. $this->checkAccess('acl'); JRequest::setVar('view', 'acl'); JRequest::setVar('add', true); JRequest::setVar('type', 'assigned'); parent::display(); }
public function __construct() { parent::__construct(); }
/** * Constructor * * @since 0.1 */ function __construct() { // Include the tables in path JTable::addIncludePath(EBLOG_TABLES); parent::__construct(); }
?> " /> <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();
public function __construct() { parent::__construct(); $this->registerTask('applyForm', 'saveForm'); }