Beispiel #1
0
 /**
  * Override parent's implementation
  *
  * @since   1.2
  * @access  public
  * @param   string
  * @return
  */
 public function store($pk = null)
 {
     $isNew = $this->id ? false : true;
     $state = parent::store($pk);
     if ($state) {
         $verb = $isNew ? 'create' : 'update';
         $this->createStream($verb);
     }
     return $state;
 }
Beispiel #2
0
 /**
  * Override parent's implementation
  *
  * @since	1.2
  * @access	public
  * @param	string
  * @return
  */
 public function store($pk = null)
 {
     $isNew = $this->id ? false : true;
     $state = parent::store($pk);
     // Only store "create" in stream
     if ($state && $isNew) {
         $this->createStream('create');
     }
     return $state;
 }