PHP 클래스 Redaxscript\Db

부터: 2.2.0
저자: Henry Ruhs
상속: extends OR\ORM
파일 보기 프로젝트 열기: redaxmedia/redaxscript 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_config object instance of the config class

공개 메소드들

메소드 설명
construct ( Config $config ) constructor of the class
countTablePrefix ( ) : Db count table with prefix
findFlatArray ( string $key = 'id' ) : array find a flat array
forTablePrefix ( string $table = null, string $connection = self::DEFAULT_CONNECTION ) : Db for table with prefix
getSetting ( string $key = null ) : mixed get the setting
getStatus ( ) : integer get the database status
init ( ) init the class
leftJoinPrefix ( string $table = null, string $constraint = null, string $tableAlias = null ) : Db left join with prefix
limitGlobal ( ) : Db limit according to global setting
orderGlobal ( string $column = null ) : Db order according to global setting
rawInstance ( ) : Db raw instance helper
setSetting ( string $key = null, string $value = null ) : boolean set the setting
whereLanguageIs ( array $language = null ) : Db where language is
whereLikeMany ( array $columnArray = null, array $likeArray = null ) : Db where like with many

메소드 상세

construct() 공개 정적인 메소드

constructor of the class
부터: 2.6.0
public static construct ( Config $config )
$config Config instance of the config class

countTablePrefix() 공개 정적인 메소드

count table with prefix
부터: 2.4.0
public static countTablePrefix ( ) : Db
리턴 Db

findFlatArray() 공개 메소드

find a flat array
부터: 3.0.0
public findFlatArray ( string $key = 'id' ) : array
$key string key of the item
리턴 array

forTablePrefix() 공개 정적인 메소드

for table with prefix
부터: 2.2.0
public static forTablePrefix ( string $table = null, string $connection = self::DEFAULT_CONNECTION ) : Db
$table string name of the table
$connection string which connection to use
리턴 Db

getSetting() 공개 메소드

get the setting
부터: 3.0.0
public getSetting ( string $key = null ) : mixed
$key string key of the item
리턴 mixed

getStatus() 공개 정적인 메소드

get the database status
부터: 2.4.0
public static getStatus ( ) : integer
리턴 integer

init() 공개 정적인 메소드

init the class
부터: 2.6.0
public static init ( )

leftJoinPrefix() 공개 메소드

left join with prefix
부터: 2.2.0
public leftJoinPrefix ( string $table = null, string $constraint = null, string $tableAlias = null ) : Db
$table string name of the table
$constraint string constraint as needed
$tableAlias string alias of the table
리턴 Db

limitGlobal() 공개 메소드

limit according to global setting
부터: 2.2.0
public limitGlobal ( ) : Db
리턴 Db

orderGlobal() 공개 메소드

order according to global setting
부터: 2.2.0
public orderGlobal ( string $column = null ) : Db
$column string name of the column
리턴 Db

rawInstance() 공개 정적인 메소드

raw instance helper
부터: 2.4.0
public static rawInstance ( ) : Db
리턴 Db

setSetting() 공개 메소드

set the setting
부터: 3.0.0
public setSetting ( string $key = null, string $value = null ) : boolean
$key string key of the item
$value string value of the item
리턴 boolean

whereLanguageIs() 공개 메소드

where language is
부터: 3.0.0
public whereLanguageIs ( array $language = null ) : Db
$language array value of the language
리턴 Db

whereLikeMany() 공개 메소드

where like with many
부터: 3.0.0
public whereLikeMany ( array $columnArray = null, array $likeArray = null ) : Db
$columnArray array array of column names
$likeArray array array of the like
리턴 Db

프로퍼티 상세

$_config 보호되어 있는 정적으로 프로퍼티

instance of the config class
protected static object $_config
리턴 object