public function setup() { parent::setup(); if (sfConfig::get('app_aBlog_use_bundled_assets', true)) { $this->getResponse()->addJavascript('/apostropheBlogPlugin/js/aBlog.js'); } }
public function preExecute() { parent::preExecute(); if (sfConfig::get('app_aBlog_use_bundled_assets', true)) { $this->getResponse()->addStylesheet('/apostropheBlogPlugin/css/aBlog.css'); $this->getResponse()->addJavascript('/apostropheBlogPlugin/js/aBlog.js'); } }
/** * set the needed request-params * * @author KM * * @param $context * @param $module * @param $action */ public function initialize($context, $module, $action) { $parentRet = parent::initialize($context, $module, $action); $request = $context->getRequest(); $this->pVerifiedDomains = DomainProfileTable::retrieveVerifiedForUser($this->getUser()->getGuardUser()); $this->pHostId = $request->getParameter('host_id', $this->pVerifiedDomains[0]->getId()); $this->pAggregation = $request->getParameter('aggregation', 'daily'); $this->pDateFrom = $request->getParameter('date-from', date('Y-m-d', strtotime("6 days ago"))); $this->pDateTo = $request->getParameter('date-to', date('Y-m-d')); return $parentRet; }
/** * @return sfGuardSecurityUser */ function getUser() { return parent::getUser(); }
public function setup() { parent::setup(); }
public function __construct($context, $moduleName, $actionName) { parent::__construct($context, $moduleName, $actionName); $this->currentUser = $this->getCurrentUser(); $this->currentVendor = $this->getVendor(); }
public function preExecute() { parent::preExecute(); }