Пример #1
0
 /**
  * Sets up the helper's properties, and determines whether the helper's environment
  * is set up and ready to be used.
  *
  * @access public
  *
  * @return void
  */
 public function __construct(View $View, $settings = array())
 {
     parent::__construct($View, $settings);
     $this->cssCachePath = CSS;
     $this->jsCachePath = JS;
     $cacheLength = Configure::read('Assets.cacheLength');
     if (is_string($cacheLength)) {
         $this->cacheLength = strtotime($cacheLength) - time();
     } else {
         $this->cacheLength = (int) $cacheLength;
     }
     if (Configure::read('debug') != 2) {
         $this->enabled = true;
     }
 }
Пример #2
0
 /**
  * @brief load up the passed in configs
  * 
  * @access public
  * 
  * @param View $View the current View
  * @param type $settings array of settings
  * 
  * @return void
  */
 public function __construct(View $View, $settings = array())
 {
     $this->__config('vertical_link', $settings);
     parent::__construct($View, $settings);
 }