PHP Class Jarves\Configuration\Condition

Inheritance: extends Model
Afficher le fichier Open project: jarves/jarves Class Usage Examples

Protected Properties

Свойство Type Description
$rules array
$tableName string
$tableNameSet boolean

Méthodes publiques

Méthode Description
__clone ( )
add ( $join, array | Condition $condition = null )
addAnd ( array | Condition $condition = null )
addOr ( array | Condition $condition = null )
appendXml ( DOMNode $node, boolean $printDefaults = false, boolean $printComments = false ) : DOMElement | void Appends the xml structure with our values.
appendXmlValue ( string $key, mixed $value, DOMNode $node, boolean $arrayType = false, boolean $printDefaults = false, boolean $printComments = false ) : DOMNode | void Appends the xm structure with the given values.
create ( mixed $condition = null, Jarves $jarves = null ) : Condition
extractNode ( DOMNode $element )
from ( array | Condition $condition )
fromArray ( $values, $key = null )
getRules ( ) : array
getTableName ( ) : mixed
getType ( string $type ) : string
hasRules ( )
importNode ( DOMNode $element )
isTableNameSet ( ) : boolean
merge ( string $join, array | Condition $condition )
mergeAnd ( array | Condition $condition )
mergeAndBegin ( array | Condition $condition )
mergeBegin ( string $join, array | Condition $condition )
mergeOr ( array | Condition $condition )
mergeOrBegin ( array | Condition $condition )
setRules ( array $rules )
setTableName ( mixed $tableName )
setTableNameSet ( boolean $tableNameSet )
toArray ( boolean $printDefaults = false ) : array

Private Methods

Méthode Description
normalizeToArray ( Condition | array $condition ) : array

Method Details

__clone() public méthode

public __clone ( )

add() public méthode

public add ( $join, array | Condition $condition = null )
$join
$condition array | Condition

addAnd() public méthode

public addAnd ( array | Condition $condition = null )
$condition array | Condition

addOr() public méthode

public addOr ( array | Condition $condition = null )
$condition array | Condition

appendXml() public méthode

Appends the xml structure with our values.
public appendXml ( DOMNode $node, boolean $printDefaults = false, boolean $printComments = false ) : DOMElement | void
$node DOMNode
$printDefaults boolean
$printComments boolean
Résultat DOMElement | void

appendXmlValue() public méthode

Appends the xm structure with the given values.
public appendXmlValue ( string $key, mixed $value, DOMNode $node, boolean $arrayType = false, boolean $printDefaults = false, boolean $printComments = false ) : DOMNode | void
$key string
$value mixed
$node DOMNode
$arrayType boolean
$printDefaults boolean
$printComments boolean
Résultat DOMNode | void

create() public static méthode

public static create ( mixed $condition = null, Jarves $jarves = null ) : Condition
$condition mixed
$jarves Jarves\Jarves
Résultat Condition

extractNode() public méthode

public extractNode ( DOMNode $element )
$element DOMNode

from() public méthode

public from ( array | Condition $condition )
$condition array | Condition

fromArray() public méthode

public fromArray ( $values, $key = null )

getRules() public méthode

public getRules ( ) : array
Résultat array

getTableName() public méthode

public getTableName ( ) : mixed
Résultat mixed

getType() public méthode

public getType ( string $type ) : string
$type string
Résultat string

hasRules() public méthode

public hasRules ( )

importNode() public méthode

public importNode ( DOMNode $element )
$element DOMNode

isTableNameSet() public méthode

public isTableNameSet ( ) : boolean
Résultat boolean

merge() public méthode

public merge ( string $join, array | Condition $condition )
$join string
$condition array | Condition

mergeAnd() public méthode

public mergeAnd ( array | Condition $condition )
$condition array | Condition

mergeAndBegin() public méthode

public mergeAndBegin ( array | Condition $condition )
$condition array | Condition

mergeBegin() public méthode

public mergeBegin ( string $join, array | Condition $condition )
$join string
$condition array | Condition

mergeOr() public méthode

public mergeOr ( array | Condition $condition )
$condition array | Condition

mergeOrBegin() public méthode

public mergeOrBegin ( array | Condition $condition )
$condition array | Condition

setRules() public méthode

public setRules ( array $rules )
$rules array

setTableName() public méthode

public setTableName ( mixed $tableName )
$tableName mixed

setTableNameSet() public méthode

public setTableNameSet ( boolean $tableNameSet )
$tableNameSet boolean

toArray() public méthode

public toArray ( boolean $printDefaults = false ) : array
$printDefaults boolean
Résultat array

Property Details

$rules protected_oe property

protected array $rules
Résultat array

$tableName protected_oe property

protected string $tableName
Résultat string

$tableNameSet protected_oe property

protected bool $tableNameSet
Résultat boolean