DB_dsql::getField PHP Méthode

getField() public méthode

Return expression containing a properly escaped field. Use make subquery condition reference parent query.
public getField ( string $fld ) : DB_dsql
$fld string Field in SQL table
Résultat DB_dsql Expression pointing to specified field
    public function getField($fld)
    {
        if ($this->main_table === false) {
            throw $this->exception('Cannot use getField() when multiple tables are queried');
        }
        return $this->expr($this->bt($this->main_table) . '.' . $this->bt($fld));
    }