PHP 클래스 Jarves\Storage\Propel

상속: extends AbstractStorage
파일 보기 프로젝트 열기: jarves/jarves 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$acl Jarves\ACL
$conditionOperator Jarves\ConditionOperator
$jarves Jarves\Jarves
$objects Jarves\Objects
$propelPrimaryKeys array
$query object
$tableMap Propel\Runtime\Map\TableMap

공개 메소드들

메소드 설명
__construct ( Jarves $jarves, Objects $objects, ACL $acl, ConditionOperator $conditionOperator )
add ( $values, $targetPk = null, $mode = 'first', $scope = null )
clear ( )
clearCache ( )
configure ( $objectKey, $definition )
export ( Condition $condition = null )
extractSelection ( $fields )
getBranch ( $pk = null, Condition $condition = null, $depth = 1, $scope = null, $options = null )
getBranchChildrenCount ( $pk = null, Condition $condition = null, $scope = null )
getCount ( Condition $condition = null )
getFields ( array | string $fields ) : array Returns all column names by allowed and extracted fields.
getItem ( $pk, $options = [] ) {@inheritDoc}
getItems ( array $filter = null, Condition $condition = null, $options = null ) {@inheritDoc}
getNestedSubCondition ( Condition $condition ) : Condition Propel uses for his nested-set objects lft and rgt fields.
getParent ( $pk, $options = null )
getParents ( $pk, $options = null )
getPhpName ( string $objectName = null ) : string Returns php class name.
getPropelPk ( array $pk, string $objectKey = null ) : mixed Since the core provide the pk as array('id' => 123) and not as array(123) we have to convert it for propel orm.
getQueryClass ( null $name = null ) : mixed Returns a new query class.
getRoots ( Condition $condition = null, $options = null )
getStm ( Propel\Runtime\ActiveQuery\ModelCriteria $query, Condition $condition = null ) : PDOStatement
getVersionDiff ( $pk, $options = null )
getVersions ( $pk, $options = null )
mapCondition ( Propel\Runtime\ActiveQuery\ModelCriteria $query, Condition $condition = null ) Adds $query->where() based on $condition.
mapFilter ( mixed $query, array $filter )
mapOptions ( Propel\Runtime\ActiveQuery\ModelCriteria $query, array $options = [] ) Maps options like limit, offset, order
mapPk ( mixed $query, array $pk ) Sets the filterBy by &$query from $pk.
mapResult ( $result, callable $callback ) : array
mapToOneRelationFields ( Propel\Runtime\ActiveQuery\ModelCriteria &$query, Propel\Runtime\Map\RelationMap[] $relations, string[][] $relationFields )
mapValues ( &$item, array &$values, boolean $ignoreNotExistingValues = false )
move ( $pk, $targetPk, $position = 'first', $targetObjectKey = null ) {@inheritDoc}
onlyPrimaryKeySelected ( array $options ) : boolean Checks whether only primary key fields should be selected.
patch ( $pk, $values )
pkFromRow ( $row )
populateRow ( $clazz, $row, $selects, $relations, $relationFields, boolean $permissionCheck = false ) : array Generates a row from the propel object using the get*() methods. Resolves *-to-many relations.
remove ( $pk )
search ( $query, Condition $condition = null, $max = 20 )
update ( $pk, $values )

메소드 상세

__construct() 공개 메소드

public __construct ( Jarves $jarves, Objects $objects, ACL $acl, ConditionOperator $conditionOperator )
$jarves Jarves\Jarves
$objects Jarves\Objects
$acl Jarves\ACL
$conditionOperator Jarves\ConditionOperator

add() 공개 메소드

public add ( $values, $targetPk = null, $mode = 'first', $scope = null )

clear() 공개 메소드

public clear ( )

clearCache() 공개 메소드

public clearCache ( )

configure() 공개 메소드

public configure ( $objectKey, $definition )

export() 공개 메소드

public export ( Condition $condition = null )
$condition Jarves\Configuration\Condition

extractSelection() 공개 메소드

public extractSelection ( $fields )

getBranch() 공개 메소드

public getBranch ( $pk = null, Condition $condition = null, $depth = 1, $scope = null, $options = null )
$condition Jarves\Configuration\Condition

getBranchChildrenCount() 공개 메소드

public getBranchChildrenCount ( $pk = null, Condition $condition = null, $scope = null )
$condition Jarves\Configuration\Condition

getCount() 공개 메소드

public getCount ( Condition $condition = null )
$condition Jarves\Configuration\Condition

getFields() 공개 메소드

If '*' we return all allowed fields.
public getFields ( array | string $fields ) : array
$fields array | string
리턴 array

getItem() 공개 메소드

{@inheritDoc}
public getItem ( $pk, $options = [] )

getItems() 공개 메소드

{@inheritDoc}
public getItems ( array $filter = null, Condition $condition = null, $options = null )
$filter array
$condition Jarves\Configuration\Condition

getNestedSubCondition() 공개 메소드

So we include with this condition all entries 'inside' the entry defined through $condition.
public getNestedSubCondition ( Condition $condition ) : Condition
$condition Jarves\Configuration\Condition
리턴 Jarves\Configuration\Condition

getParent() 공개 메소드

public getParent ( $pk, $options = null )

getParents() 공개 메소드

public getParents ( $pk, $options = null )

getPhpName() 공개 메소드

Returns php class name.
public getPhpName ( string $objectName = null ) : string
$objectName string
리턴 string

getPropelPk() 공개 메소드

Since the core provide the pk as array('id' => 123) and not as array(123) we have to convert it for propel orm.
public getPropelPk ( array $pk, string $objectKey = null ) : mixed
$pk array
$objectKey string
리턴 mixed Propel PK

getQueryClass() 공개 메소드

Returns a new query class.
public getQueryClass ( null $name = null ) : mixed
$name null
리턴 mixed

getRoots() 공개 메소드

public getRoots ( Condition $condition = null, $options = null )
$condition Jarves\Configuration\Condition

getStm() 공개 메소드

public getStm ( Propel\Runtime\ActiveQuery\ModelCriteria $query, Condition $condition = null ) : PDOStatement
$query Propel\Runtime\ActiveQuery\ModelCriteria
$condition Jarves\Configuration\Condition
리턴 PDOStatement

getVersionDiff() 공개 메소드

public getVersionDiff ( $pk, $options = null )

getVersions() 공개 메소드

public getVersions ( $pk, $options = null )

mapCondition() 공개 메소드

Adds $query->where() based on $condition.
public mapCondition ( Propel\Runtime\ActiveQuery\ModelCriteria $query, Condition $condition = null )
$query Propel\Runtime\ActiveQuery\ModelCriteria
$condition Jarves\Configuration\Condition

mapFilter() 공개 메소드

public mapFilter ( mixed $query, array $filter )
$query mixed
$filter array

mapOptions() 공개 메소드

Maps options like limit, offset, order
public mapOptions ( Propel\Runtime\ActiveQuery\ModelCriteria $query, array $options = [] )
$query Propel\Runtime\ActiveQuery\ModelCriteria
$options array

mapPk() 공개 메소드

Sets the filterBy by &$query from $pk.
public mapPk ( mixed $query, array $pk )
$query mixed
$pk array

mapResult() 공개 메소드

public mapResult ( $result, callable $callback ) : array
$callback callable
리턴 array

mapToOneRelationFields() 공개 메소드

public mapToOneRelationFields ( Propel\Runtime\ActiveQuery\ModelCriteria &$query, Propel\Runtime\Map\RelationMap[] $relations, string[][] $relationFields )
$query Propel\Runtime\ActiveQuery\ModelCriteria
$relations Propel\Runtime\Map\RelationMap[]
$relationFields string[][]

mapValues() 공개 메소드

public mapValues ( &$item, array &$values, boolean $ignoreNotExistingValues = false )
$item propel object
$values array
$ignoreNotExistingValues boolean

move() 공개 메소드

{@inheritDoc}
public move ( $pk, $targetPk, $position = 'first', $targetObjectKey = null )

onlyPrimaryKeySelected() 공개 메소드

Checks whether only primary key fields should be selected.
public onlyPrimaryKeySelected ( array $options ) : boolean
$options array with 'fields' item (e.g ['fields' => 'id, name'])
리턴 boolean

patch() 공개 메소드

public patch ( $pk, $values )

pkFromRow() 공개 메소드

public pkFromRow ( $row )

populateRow() 공개 메소드

Generates a row from the propel object using the get*() methods. Resolves *-to-many relations.
public populateRow ( $clazz, $row, $selects, $relations, $relationFields, boolean $permissionCheck = false ) : array
$clazz
$row
$selects
$relations
$relationFields
$permissionCheck boolean
리턴 array

remove() 공개 메소드

public remove ( $pk )

update() 공개 메소드

public update ( $pk, $values )

프로퍼티 상세

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

protected ACL,Jarves $acl
리턴 Jarves\ACL

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

protected ConditionOperator,Jarves $conditionOperator
리턴 Jarves\ConditionOperator

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

protected Jarves,Jarves $jarves
리턴 Jarves\Jarves

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

protected Objects,Jarves $objects
리턴 Jarves\Objects

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

protected array $propelPrimaryKeys
리턴 array

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

protected object $query
리턴 object

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

protected TableMap,Propel\Runtime\Map $tableMap
리턴 Propel\Runtime\Map\TableMap