public function update($data = null)
    {
        if ($this->hasMethod('__update') && is_callable([$this, '__update'])) {
            return $this->__update($data);
        }

        // notify observers about new data
        $this->notify();
    }
public function update($data = null)
    {
        if ($this->hasMethod('__update') && is_callable([$this, '__update'])) {
            return $this->__update($data);
        }

        // notify observers about new data
        $this->notify();
    }
public function update ( $ data = null ) { if ( $ this -> hasMethod ( '__update' ) && is_callable ( [ $ this , '__update' ] ) ) { return $ this -> __update ( $ data ) ; } // notify observers about new data $ this -> notify ( ) ; }
Update of crUd.

@param mixed $data The data for update

@author Benjamin Carl <opensource@clickalicious.de>

@return mixed Data on success, otherwise null
Update of crUd .