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');
     }
 }
Exemplo n.º 3
0
 /**
  * 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;
 }
Exemplo n.º 4
0
 /**
  * @return sfGuardSecurityUser
  */
 function getUser()
 {
     return parent::getUser();
 }
Exemplo n.º 5
0
 public function setup()
 {
     parent::setup();
 }
 public function __construct($context, $moduleName, $actionName)
 {
     parent::__construct($context, $moduleName, $actionName);
     $this->currentUser = $this->getCurrentUser();
     $this->currentVendor = $this->getVendor();
 }
Exemplo n.º 7
0
 public function preExecute()
 {
     parent::preExecute();
 }