PHP 클래스 Pop\Db\Sql\AbstractSql

저자: Nick Sagona, III ([email protected])
파일 보기 프로젝트 열기: nicksagona/PopPHP

보호된 프로퍼티들

프로퍼티 타입 설명
$columns array SQL columns
$limit mixed LIMIT value
$offset integer OFFSET value
$orderBy string ORDER BY value
$sql Pop\Db\Sql SQL object

공개 메소드들

메소드 설명
__construct ( Sql $sql, mixed $columns = null ) : AbstractSql Constructor
limit ( mixed $limit ) : AbstractSql Set the LIMIT value
offset ( integer $offset ) : AbstractSql Set the OFFSET value
orderBy ( mixed $by, string $order = 'ASC' ) : AbstractSql Set the ORDER BY value
render ( ) : string Abstract render method

메소드 상세

__construct() 공개 메소드

Instantiate the SQL object.
public __construct ( Sql $sql, mixed $columns = null ) : AbstractSql
$sql Pop\Db\Sql
$columns mixed
리턴 AbstractSql

limit() 공개 메소드

Set the LIMIT value
public limit ( mixed $limit ) : AbstractSql
$limit mixed
리턴 AbstractSql

offset() 공개 메소드

Set the OFFSET value
public offset ( integer $offset ) : AbstractSql
$offset integer
리턴 AbstractSql

orderBy() 공개 메소드

Set the ORDER BY value
public orderBy ( mixed $by, string $order = 'ASC' ) : AbstractSql
$by mixed
$order string
리턴 AbstractSql

render() 추상적인 공개 메소드

Abstract render method
abstract public render ( ) : string
리턴 string

프로퍼티 상세

$columns 보호되어 있는 프로퍼티

SQL columns
protected array $columns
리턴 array

$limit 보호되어 있는 프로퍼티

LIMIT value
protected mixed $limit
리턴 mixed

$offset 보호되어 있는 프로퍼티

OFFSET value
protected int $offset
리턴 integer

$orderBy 보호되어 있는 프로퍼티

ORDER BY value
protected string $orderBy
리턴 string

$sql 보호되어 있는 프로퍼티

SQL object
protected Sql,Pop\Db $sql
리턴 Pop\Db\Sql