Exemple #1
0
 /**
  * @overrides init() from RestResource
  */
 protected function init()
 {
     parent::init();
     $this->_cacheLife = 900;
     // 15 minutes
     $this->_cacheable = true;
 }
Exemple #2
0
 protected function init($contactType = null)
 {
     if (parent::init()) {
         $this->_contactType = $contactType;
         return true;
     } else {
         return false;
     }
 }