protected function delete($data = null)
    {
        if ($this->hasMethod('__delete') && is_callable([$this, '__delete'])) {
            return $this->__delete($data);
        }

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

        // notify observers about new data
        $this->notify();
    }
protected function delete ( $ data = null ) { if ( $ this -> hasMethod ( '__delete' ) && is_callable ( [ $ this , '__delete' ] ) ) { return $ this -> __delete ( $ data ) ; } // notify observers about new data $ this -> notify ( ) ; }
Delete of cruD.

@param mixed $data The data for delete

@author Benjamin Carl <opensource@clickalicious.de>

@return bool TRUE on success, otherwise FALSE
Delete of cruD .