Controller_Data_Mongo::deleteAll PHP Метод

deleteAll() публичный Метод

public deleteAll ( $model )
    public function deleteAll($model)
    {
        if ($model->debug) {
            echo '<font style="color: blue">db.' . $model->table . '.remove(' . json_encode($model->_table[$this->short_name]['conditions']) . ')</font><br/>';
        }
        $model->data = $this->_get($model, 'db')->remove($model->_table[$this->short_name]['conditions']);
        $model->unload();
        return $this;
    }