src/Phiber/ORM/Queries/PhiberQueryWriter.php
public function delete(array $infos)
    {
        $tabela        = $infos['table'];
        $whereCriteria = $infos['where'];

        try {
            $this->sql = "DELETE FROM $tabela ";
            if (!empty($whereCriteria)) {
                $this->sql .= " WHERE " . $whereCriteria . " ";
            }
            
            return $this->sql . ";";

        } catch (PhiberException $e) {
            throw new PhiberException(new Internationalization("query_processor_error"));
        }
    }
public function delete(array $infos)
    {
        $tabela        = $infos['table'];
        $whereCriteria = $infos['where'];

        try {
            $this->sql = "DELETE FROM $tabela ";
            if (!empty($whereCriteria)) {
                $this->sql .= " WHERE " . $whereCriteria . " ";
            }
            
            return $this->sql . ";";

        } catch (PhiberException $e) {
            throw new PhiberException(new Internationalization("query_processor_error"));
        }
    }
public function delete ( array $ infos ) { $ tabela = $ infos [ 'table' ] ; $ whereCriteria = $ infos [ 'where' ] ; try { $ this -> sql = "DELETE FROM $tabela " ; if ( ! empty ( $ whereCriteria ) ) { $ this -> sql .= " WHERE " . $ whereCriteria . " " ; } return $ this -> sql . ";" ; } catch ( PhiberException $ e ) { throw new PhiberException ( new Internationalization ( "query_processor_error" ) ) ; } }
Faz a query de delete de um registro no banco com os dados.

@param    array $infos
@return   bool|string
@throws   PhiberException
@internal param $object
@internal param array $conditions
@internal param array $conjunctions
Faz a query de delete de um registro no banco com os dados .