PHP Class Jarves\Configuration\Condition

Inheritance: extends Model
Show file Open project: jarves/jarves Class Usage Examples

Protected Properties

Property Type Description
$rules array
$tableName string
$tableNameSet boolean

Public Methods

Method 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

Method Description
normalizeToArray ( Condition | array $condition ) : array

Method Details

__clone() public method

public __clone ( )

add() public method

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

addAnd() public method

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

addOr() public method

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

appendXml() public method

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
return DOMElement | void

appendXmlValue() public method

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
return DOMNode | void

create() public static method

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

extractNode() public method

public extractNode ( DOMNode $element )
$element DOMNode

from() public method

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

fromArray() public method

public fromArray ( $values, $key = null )

getRules() public method

public getRules ( ) : array
return array

getTableName() public method

public getTableName ( ) : mixed
return mixed

getType() public method

public getType ( string $type ) : string
$type string
return string

hasRules() public method

public hasRules ( )

importNode() public method

public importNode ( DOMNode $element )
$element DOMNode

isTableNameSet() public method

public isTableNameSet ( ) : boolean
return boolean

merge() public method

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

mergeAnd() public method

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

mergeAndBegin() public method

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

mergeBegin() public method

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

mergeOr() public method

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

mergeOrBegin() public method

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

setRules() public method

public setRules ( array $rules )
$rules array

setTableName() public method

public setTableName ( mixed $tableName )
$tableName mixed

setTableNameSet() public method

public setTableNameSet ( boolean $tableNameSet )
$tableNameSet boolean

toArray() public method

public toArray ( boolean $printDefaults = false ) : array
$printDefaults boolean
return array

Property Details

$rules protected property

protected array $rules
return array

$tableName protected property

protected string $tableName
return string

$tableNameSet protected property

protected bool $tableNameSet
return boolean