system/Database/DatabaseManager.php
/**
     * Determine if a resource exists in a database
     * 
     *
     * @return bool True if the resource exists, False otherwise
     */
Determine if a resource exists in a database

@return bool True if the resource exists, False otherwise
Determine if a resource exists in a database @return bool True if the resource exists False otherwise
public function exists()
    {   
        if(empty($this->queryData))
        {
            throw new Exception('Expected the where() method to be called before exists()!');
        }
        $this->is_row = true;
        return !empty($this->get());
    }
public function exists ( ) { if ( empty ( $ this -> queryData ) ) { throw new Exception ( 'Expected the where() method to be called before exists()!' ) ; } $ this -> is_row = true ; return ! empty ( $ this -> get ( ) ) ; }
Determine if a resource exists in a database
Determine if a resource exists in a database