PHP 클래스 Jarves\Admin\ObjectCrud

상속: implements Jarves\Admin\ObjectCrudInterface
파일 보기 프로젝트 열기: jarves/jarves 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_fields Jarves\Configuration\Field[] Flatten list of fields.
$acl Jarves\ACL
$add boolean Defines whether the add button should be displayed
$addEntrypoint string Default is /. Relative or absolute paths are allowed. Empty means current entrypoint.
$addIcon Defines the icon for the add button. Relative to media/ or #className for vector images
$addMultiple
$addMultipleFieldContainerWidth
$addMultipleFields
$addMultipleFixedFields
$allowCustomFieldSelection boolean (?fields=...)
$asNested boolean Is automatically set when object property is defined.
$columns array This is used by the listing crud window (and GET of the REST api) Only one level, no children, no tabs. Use the crud editor, to get the list of possible types.
$conditionOperator Jarves\ConditionOperator
$customOrderBy string Order field
$defaultLimit Defines how many items should be displayed per page.
$domain integer The current domain id to filter if domainDepended is enabled.
$domainDepended boolean Note: Your table need a field 'domain_id' int. The windowList class filter by this.
$edit boolean Defines whether the edit button should be displayed
$editEntrypoint string Default is /. Relative or absolute paths are allowed. Empty means current entrypoint.
$editIcon Defines the icon for the edit button. Relative to media/ or #className for vector images
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$extraSelection string | array Only field names allowed that are available by the underlying object. Comma separated or as array.
$fields array Can contains several fields nested, via 'children', also type 'tab' are allowed. Every jarves.field is allowed.
$filter array Contains the fields for the search.
$filterFields array
$itemLayout string
$itemsPerPage integer
$jarves Jarves\Jarves
$language string The current language to filter if multiLanguage is enabled.
$multiLanguage boolean Note: Your table need a field 'lang' varchar(2). The windowList class filter by this. If the object is nested=true and have a root object
$nestedAddWithPositionSelection
$nestedMoveable
$nestedRootAdd
$nestedRootAddEntrypoint
$nestedRootAddIcon
$nestedRootAddLabel
$nestedRootEdit
$nestedRootEditEntrypoint
$nestedRootRemove
$nestedRootRemoveEntrypoint
$newLabel
$object Defines the object which should be used.
$objectBased boolean Whether this CRUD view is based on a object with an id.
$objectDefinition Jarves\Configuration\Object Copy of the object definition, by is being set in the initialisation. Only set when object property is defined.
$objects Jarves\Objects
$order array array( array('field' => 'group_id', 'direction' => 'asc'), array('field' => 'title', 'direction' => 'asc') ); or array( 'group_id' => 'asc', 'title' => 'desc' )
$orderBy string Order field
$orderByDirection string Order direction
$permissionCheck boolean Deactivate this means this object does not listen to any ACL.
$primary array Example: $primary = array('id'); Example: $primary = array('id', 'name'); Use this only if you know, what you're doing, normally this comes from the object settings.
$primaryKey array If the class created a item through addItem(), it contains the primary key of the newly created item. array( 'id' => 1234 ) array( 'id' => 1234, 'subId' => 5678 )
$remove boolean Defines whether the remove/delete button should be displayed Also on each row the Delete-Button and the checkboxes.
$removeEntrypoint string
$removeIcon Defines the icon for the remove/delete button. Relative to media/ or #className for vector images
$removeIconItem Defines the icon for the remove/delete button. Relative to media/ or #className for vector images
$requestStack Symfony\Component\HttpFoundation\RequestStack
$startCombine
$table Use this only if you know, what you're doing, normally this comes from the object definition from the object property.
$translator Jarves\Translation\Translator
$usePatch boolean 'PUT' requires that you send all field, and 'PATCH' only the fields that need to be updated.
$utils Jarves\Utils
$withNewsFeed boolean
$workspace boolean Needs a column workspace_id in the table or active workspace at object.

공개 메소드들

메소드 설명
__construct ( Translator $translator, Objects $objects, Jarves $jarves, Symfony\Component\HttpFoundation\RequestStack $requestStack, ConditionOperator $conditionOperator, ACL $acl, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher, Utils $utils ) ObjectCrud constructor.
add ( Request | array $requestOrData, array | null $pk = null, string | null $position = null, string | null $targetObjectKey = null ) : mixed Adds a new item.
addMultiple ( Request $request ) : array | mixed Adds multiple entries.
buildFilter ( array $filter ) : array | null
collectData ( Request | array $requestData ) : array
getAdd ( ) : boolean
getAddEntrypoint ( ) : string
getAddIcon ( ) : string
getAddMultiple ( )
getAddMultipleFieldContainerWidth ( )
getAddMultipleFields ( )
getAddMultipleFixedFields ( )
getAllowCustomFieldSelection ( ) : boolean
getAsNested ( ) : boolean
getBranchChildrenCount ( mixed $pk = null, mixed $scope = null, array $filter = null ) : array Returns items count per branch.
getBranchItems ( mixed $pk = null, array $filter = null, mixed $fields = null, mixed $scope = null, integer $depth = 1, integer $limit = null, integer $offset = null, boolean $withAcl = false ) : mixed Returns items per branch.
getColumns ( ) : array
getCondition ( ) : Condition Here you can define additional conditions for all operations (edit/listing).
getCount ( Condition | array $filter, string $query = '' ) : integer
getCustomEditCondition ( ) : Condition Here you can define additional conditions for edit operations.
getCustomListingCondition ( ) : Condition Here you can define additional conditions for listing operations.
getCustomOrderBy ( ) : string
getDefaultFieldList ( ) : array Get a list of field key for $this->_fields
getDefaultLimit ( ) : integer
getDomain ( ) : integer The current domain id to filter if domainDepended is enabled.
getDomainDepended ( ) : boolean
getEdit ( ) : boolean
getEditEntrypoint ( ) : string
getEditIcon ( ) : string
getExtraSelection ( ) : array
getFields ( ) : Field[]
getFilter ( ) : array
getFilterFields ( )
getInfo ( )
getInitializedFields ( ) : Field[]
getItem ( array $pk, array $fields = null, boolean $withAcl = false ) : array $pk is an array with the primary key values.
getItemLayout ( )
getItems ( array $filter = null, integer $limit = null, integer $offset = null, string $query = '', string $fields = null, array $orderBy = [], boolean $withAcl = false, array $primaryKeys = [] ) : array array( 'items' => $items, 'count' => $maxItems, 'pages' => $maxPages );
getItemsPerPage ( ) : integer
getLanguage ( ) : string The current language to filter if multiLanguage is enabled.
getMultiLanguage ( ) : boolean
getNestedAddWithPositionSelection ( )
getNestedMoveable ( )
getNestedRootAdd ( )
getNestedRootAddEntrypoint ( )
getNestedRootAddIcon ( )
getNestedRootAddLabel ( )
getNestedRootEdit ( )
getNestedRootEditEntrypoint ( )
getNestedRootRemove ( )
getNestedRootRemoveEntrypoint ( )
getNewLabel ( )
getObject ( ) : string
getObjectBased ( ) : boolean
getObjectDefinition ( ) : Object
getOrder ( ) : array
getOrderBy ( ) : string
getOrderByDirection ( ) : string
getParent ( $pk, $fields = null )
getParents ( $pk )
getPermissionCheck ( ) : boolean
getPosition ( $pk, $order )
getPrimary ( ) : array
getPrimaryKey ( ) : array The primary key of the current object.
getRemove ( ) : boolean
getRemoveEntrypoint ( )
getRemoveIcon ( ) : string
getRemoveIconItem ( ) : string
getRoot ( $scope = null )
getRoots ( $condition = null, $lang = null, $domain )
getStartCombine ( ) : boolean
getTable ( ) : string
getTreeFields ( string $fields = null ) : array
getUsePatch ( ) : boolean
getWithNewsFeed ( ) : boolean
getWorkspace ( ) : boolean
initialize ( boolean $withoutObjectCheck = false )
isObjectBased ( ) : boolean
mapData ( array $data, array $filterFields = null, mixed $defaultData = null ) : array Maps all $data to its field values (Admin\Type*::mapValues) Iterates only through all defined fields in $fields.
moveItem ( $pk, $targetPk, $position = 'first', $targetObjectKey = '' )
patch ( array $pk, Request | array $requestOrData ) : boolean Patches a object entry. This means, only defined fields will be saved. Fields which are not defined will not be overwritten.
prepareFieldAcl ( &$item )
prepareFieldDefinition ( array &$fields ) prepares $fields. Replace array items which are only a key (with no array definition) with the array definition of the proper field from the object fields.
prepareFieldItem ( Field[] | Field $fields ) Prepare fields. Loading tableItems by select and file fields.
prepareRow ( array &$item ) : array Each item goes through this function in getItems(). Defines whether a item is editable or deleteable.
remove ( $pk ) : boolean
setAdd ( boolean $add )
setAddEntrypoint ( string $addEntrypoint )
setAddIcon ( string $addIcon )
setAddMultiple ( $addMultiple )
setAddMultipleFieldContainerWidth ( $addMultipleFieldContainerWidth )
setAddMultipleFields ( $addMultipleFields )
setAddMultipleFixedFields ( $addMultipleFixedFields )
setAllowCustomFieldSelection ( boolean $allowExtraFieldSelection )
setAsNested ( boolean $asNested )
setColumns ( array $columns )
setCustomOrderBy ( string $customOrderBy )
setDefaultLimit ( integer $defaultLimit )
setDomain ( integer $domain )
setDomainDepended ( boolean $domainDepended )
setEdit ( boolean $edit )
setEditEntrypoint ( string $editEntrypoint )
setEditIcon ( $editIcon )
setExtraSelection ( array | string $selection )
setFields ( array $fields )
setFilter ( array $filter )
setFilterFields ( $filterFields )
setItemLayout ( $itemLayout )
setItemsPerPage ( integer $itemsPerPage )
setLanguage ( string $language )
setMultiLanguage ( boolean $multiLanguage )
setNestedAddWithPositionSelection ( $nestedAddWithPositionSelection )
setNestedMoveable ( $nestedMoveable )
setNestedRootAdd ( $nestedRootAdd )
setNestedRootAddEntrypoint ( $nestedRootAddEntrypoint )
setNestedRootAddIcon ( $nestedRootAddIcon )
setNestedRootAddLabel ( $nestedRootAddLabel )
setNestedRootEdit ( $nestedRootEdit )
setNestedRootEditEntrypoint ( $nestedRootEditEntrypoint )
setNestedRootRemove ( $nestedRootRemove )
setNestedRootRemoveEntrypoint ( $nestedRootRemoveEntrypoint )
setNewLabel ( $newLabel )
setObject ( string $object )
setObjectBased ( boolean $objectBased )
setObjectDefinition ( array $objectDefinition )
setOrder ( array $order )
setOrderBy ( string $orderBy )
setOrderByDirection ( string $orderByDirection )
setPermissionCheck ( boolean $permissionCheck )
setPrimary ( array $primary )
setRemove ( boolean $remove )
setRemoveEntrypoint ( $removeEntrypoint )
setRemoveIcon ( string $removeIcon )
setRemoveIconItem ( string $removeIconItem )
setStartCombine ( boolean $startCombine )
setTable ( string $table )
setUsePatch ( boolean $usePatch )
setWithNewsFeed ( boolean $withNewsFeed )
setWorkspace ( boolean $workspace )
toIdIndex ( Field[] $fieldArray )
translate ( &$field )
translateFields ( array | Field $fields ) Translate the label/title item of $fields.
update ( array $pk, Request | array $requestOrData ) : boolean Updates a object entry. This means, all fields which are not defined will be saved as NULL.

보호된 메소드들

메소드 설명
applyDefaultSelection ( array $fields ) : array Adds labelField, extraSelection and filter by blacklistSelection
convertToFieldObjects ( array &$fields ) Converst array field definition to real Field objects.
ensureLanguageField ( ) Makes sure $this->_fields has a language field when multiLanguage=true
getBranchItemsSelection ( string | array $fields = null ) : array Returns the field list for branchItems selection.
getItemSelection ( string | array $fields = null ) : array Returns the field list for single item selection.
getItemsSelection ( string | array $fields = null ) : array Returns the field list for items selection.
getNestedSelection ( $fields )
getQueryCondition ( $query, $fields )

메소드 상세

__construct() 공개 메소드

ObjectCrud constructor.
public __construct ( Translator $translator, Objects $objects, Jarves $jarves, Symfony\Component\HttpFoundation\RequestStack $requestStack, ConditionOperator $conditionOperator, ACL $acl, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher, Utils $utils )
$translator Jarves\Translation\Translator
$objects Jarves\Objects
$jarves Jarves\Jarves
$requestStack Symfony\Component\HttpFoundation\RequestStack
$conditionOperator Jarves\ConditionOperator
$acl Jarves\ACL
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$utils Jarves\Utils

add() 공개 메소드

Data is passed as POST.
public add ( Request | array $requestOrData, array | null $pk = null, string | null $position = null, string | null $targetObjectKey = null ) : mixed
$requestOrData Symfony\Component\HttpFoundation\Request | array
$pk array | null
$position string | null If nested set. `first` (child), `last` (child), `prev` (sibling), `next` (sibling)
$targetObjectKey string | null
리턴 mixed false if some went wrong or a array with the new primary keys.

addMultiple() 공개 메소드

We need as POST following data: { _items: [ {field1: 'foo', field2: 'bar'}, {field1: 'foo2', field2: 'bar2'}, .... ], same value across all items, all without underscore fixedField1: 'asd', field3: 'fgh', _position: 'first', //take a look at $this->objects->add() at parameter $pPosition _pk: { id: 123132 }, can differ between the actual object and the target (if we have a different object as root, then only position first and 'last` are available.) _targetObjectKey: 'jarves/node' }
public addMultiple ( Request $request ) : array | mixed
$request Symfony\Component\HttpFoundation\Request
리턴 array | mixed

applyDefaultSelection() 보호된 메소드

Adds labelField, extraSelection and filter by blacklistSelection
protected applyDefaultSelection ( array $fields ) : array
$fields array
리턴 array

buildFilter() 공개 정적인 메소드

public static buildFilter ( array $filter ) : array | null
$filter array
리턴 array | null

collectData() 공개 메소드

public collectData ( Request | array $requestData ) : array
$requestData Symfony\Component\HttpFoundation\Request | array *@return array
리턴 array

convertToFieldObjects() 보호된 메소드

Converst array field definition to real Field objects.
protected convertToFieldObjects ( array &$fields )
$fields array

ensureLanguageField() 보호된 메소드

Makes sure $this->_fields has a language field when multiLanguage=true
protected ensureLanguageField ( )

getAdd() 공개 메소드

public getAdd ( ) : boolean
리턴 boolean

getAddEntrypoint() 공개 메소드

public getAddEntrypoint ( ) : string
리턴 string

getAddIcon() 공개 메소드

public getAddIcon ( ) : string
리턴 string

getAddMultiple() 공개 메소드

public getAddMultiple ( )

getAddMultipleFieldContainerWidth() 공개 메소드

getAddMultipleFields() 공개 메소드

getAddMultipleFixedFields() 공개 메소드

getAllowCustomFieldSelection() 공개 메소드

getAsNested() 공개 메소드

public getAsNested ( ) : boolean
리턴 boolean

getBranchChildrenCount() 공개 메소드

Returns items count per branch.
public getBranchChildrenCount ( mixed $pk = null, mixed $scope = null, array $filter = null ) : array
$pk mixed
$scope mixed
$filter array
리턴 array

getBranchItems() 공개 메소드

Returns items per branch.
public getBranchItems ( mixed $pk = null, array $filter = null, mixed $fields = null, mixed $scope = null, integer $depth = 1, integer $limit = null, integer $offset = null, boolean $withAcl = false ) : mixed
$pk mixed
$filter array
$fields mixed
$scope mixed
$depth integer
$limit integer
$offset integer
$withAcl boolean
리턴 mixed

getBranchItemsSelection() 보호된 메소드

Returns the field list for branchItems selection.
protected getBranchItemsSelection ( string | array $fields = null ) : array
$fields string | array
리턴 array

getColumns() 공개 메소드

public getColumns ( ) : array
리턴 array

getCondition() 공개 메소드

Here you can define additional conditions for all operations (edit/listing).
public getCondition ( ) : Condition
리턴 Jarves\Configuration\Condition definition

getCount() 공개 메소드

public getCount ( Condition | array $filter, string $query = '' ) : integer
$filter Jarves\Configuration\Condition | array
$query string
리턴 integer

getCustomEditCondition() 공개 메소드

Here you can define additional conditions for edit operations.
public getCustomEditCondition ( ) : Condition
리턴 Jarves\Configuration\Condition definition

getCustomListingCondition() 공개 메소드

Here you can define additional conditions for listing operations.
public getCustomListingCondition ( ) : Condition
리턴 Jarves\Configuration\Condition definition

getCustomOrderBy() 공개 메소드

public getCustomOrderBy ( ) : string
리턴 string

getDefaultFieldList() 공개 메소드

Get a list of field key for $this->_fields
public getDefaultFieldList ( ) : array
리턴 array

getDefaultLimit() 공개 메소드

public getDefaultLimit ( ) : integer
리턴 integer

getDomain() 공개 메소드

The current domain id to filter if domainDepended is enabled.
public getDomain ( ) : integer
리턴 integer

getDomainDepended() 공개 메소드

public getDomainDepended ( ) : boolean
리턴 boolean

getEdit() 공개 메소드

public getEdit ( ) : boolean
리턴 boolean

getEditEntrypoint() 공개 메소드

public getEditEntrypoint ( ) : string
리턴 string

getEditIcon() 공개 메소드

public getEditIcon ( ) : string
리턴 string

getExtraSelection() 공개 메소드

public getExtraSelection ( ) : array
리턴 array

getFields() 공개 메소드

public getFields ( ) : Field[]
리턴 Jarves\Configuration\Field[]

getFilter() 공개 메소드

public getFilter ( ) : array
리턴 array

getFilterFields() 공개 메소드

public getFilterFields ( )

getInfo() 공개 메소드

public getInfo ( )

getInitializedFields() 공개 메소드

public getInitializedFields ( ) : Field[]
리턴 Jarves\Configuration\Field[]

getItem() 공개 메소드

If one primary key: array( 'id' => 1234 ) If multiple primary keys: array( 'id' => 1234 'secondId' => 5678 )
public getItem ( array $pk, array $fields = null, boolean $withAcl = false ) : array
$pk array
$fields array
$withAcl boolean
리턴 array

getItemLayout() 공개 메소드

public getItemLayout ( )

getItemSelection() 보호된 메소드

Returns the field list for single item selection.
protected getItemSelection ( string | array $fields = null ) : array
$fields string | array
리턴 array

getItems() 공개 메소드

array( 'items' => $items, 'count' => $maxItems, 'pages' => $maxPages );
public getItems ( array $filter = null, integer $limit = null, integer $offset = null, string $query = '', string $fields = null, array $orderBy = [], boolean $withAcl = false, array $primaryKeys = [] ) : array
$filter array
$limit integer
$offset integer
$query string
$fields string
$orderBy array
$withAcl boolean
$primaryKeys array
리턴 array

getItemsPerPage() 공개 메소드

public getItemsPerPage ( ) : integer
리턴 integer

getItemsSelection() 보호된 메소드

Returns the field list for items selection.
protected getItemsSelection ( string | array $fields = null ) : array
$fields string | array
리턴 array

getLanguage() 공개 메소드

The current language to filter if multiLanguage is enabled.
public getLanguage ( ) : string
리턴 string

getMultiLanguage() 공개 메소드

public getMultiLanguage ( ) : boolean
리턴 boolean

getNestedAddWithPositionSelection() 공개 메소드

getNestedMoveable() 공개 메소드

public getNestedMoveable ( )

getNestedRootAdd() 공개 메소드

public getNestedRootAdd ( )

getNestedRootAddEntrypoint() 공개 메소드

getNestedRootAddIcon() 공개 메소드

getNestedRootAddLabel() 공개 메소드

getNestedRootEdit() 공개 메소드

public getNestedRootEdit ( )

getNestedRootEditEntrypoint() 공개 메소드

getNestedRootRemove() 공개 메소드

public getNestedRootRemove ( )

getNestedRootRemoveEntrypoint() 공개 메소드

getNestedSelection() 보호된 메소드

protected getNestedSelection ( $fields )

getNewLabel() 공개 메소드

public getNewLabel ( )

getObject() 공개 메소드

public getObject ( ) : string
리턴 string

getObjectBased() 공개 메소드

public getObjectBased ( ) : boolean
리턴 boolean

getObjectDefinition() 공개 메소드

public getObjectDefinition ( ) : Object
리턴 Jarves\Configuration\Object

getOrder() 공개 메소드

public getOrder ( ) : array
리턴 array

getOrderBy() 공개 메소드

public getOrderBy ( ) : string
리턴 string

getOrderByDirection() 공개 메소드

public getOrderByDirection ( ) : string
리턴 string

getParent() 공개 메소드

public getParent ( $pk, $fields = null )

getParents() 공개 메소드

public getParents ( $pk )

getPermissionCheck() 공개 메소드

public getPermissionCheck ( ) : boolean
리턴 boolean

getPosition() 공개 메소드

public getPosition ( $pk, $order )

getPrimary() 공개 메소드

public getPrimary ( ) : array
리턴 array

getPrimaryKey() 공개 메소드

If the class created a item through addItem(), it contains the primary key of the newly created item. array( 'id' => 1234 ) array( 'id' => 1234, 'subId' => 5678 )
public getPrimaryKey ( ) : array
리턴 array

getQueryCondition() 보호된 메소드

protected getQueryCondition ( $query, $fields )

getRemove() 공개 메소드

public getRemove ( ) : boolean
리턴 boolean

getRemoveEntrypoint() 공개 메소드

public getRemoveEntrypoint ( )

getRemoveIcon() 공개 메소드

public getRemoveIcon ( ) : string
리턴 string

getRemoveIconItem() 공개 메소드

public getRemoveIconItem ( ) : string
리턴 string

getRoot() 공개 메소드

public getRoot ( $scope = null )

getRoots() 공개 메소드

public getRoots ( $condition = null, $lang = null, $domain )

getStartCombine() 공개 메소드

public getStartCombine ( ) : boolean
리턴 boolean

getTable() 공개 메소드

public getTable ( ) : string
리턴 string

getTreeFields() 공개 메소드

public getTreeFields ( string $fields = null ) : array
$fields string
리턴 array

getUsePatch() 공개 메소드

public getUsePatch ( ) : boolean
리턴 boolean

getWithNewsFeed() 공개 메소드

public getWithNewsFeed ( ) : boolean
리턴 boolean

getWorkspace() 공개 메소드

public getWorkspace ( ) : boolean
리턴 boolean

initialize() 공개 메소드

public initialize ( boolean $withoutObjectCheck = false )
$withoutObjectCheck boolean

isObjectBased() 공개 메소드

public isObjectBased ( ) : boolean
리턴 boolean

mapData() 공개 메소드

Maps all $data to its field values (Admin\Type*::mapValues) Iterates only through all defined fields in $fields.
public mapData ( array $data, array $filterFields = null, mixed $defaultData = null ) : array
$data array
$filterFields array Field name list to map, empty for all
$defaultData mixed Default data. Is used if a field is not defined through _POST or _GET
리턴 array

moveItem() 공개 메소드

public moveItem ( $pk, $targetPk, $position = 'first', $targetObjectKey = '' )

patch() 공개 메소드

Patches a object entry. This means, only defined fields will be saved. Fields which are not defined will not be overwritten.
public patch ( array $pk, Request | array $requestOrData ) : boolean
$pk array
$requestOrData Symfony\Component\HttpFoundation\Request | array
리턴 boolean

prepareFieldAcl() 공개 메소드

public prepareFieldAcl ( &$item )

prepareFieldDefinition() 공개 메소드

prepares $fields. Replace array items which are only a key (with no array definition) with the array definition of the proper field from the object fields.
public prepareFieldDefinition ( array &$fields )
$fields array

prepareFieldItem() 공개 메소드

Adds lang field when necessary.
public prepareFieldItem ( Field[] | Field $fields )
$fields Jarves\Configuration\Field[] | Jarves\Configuration\Field

prepareRow() 공개 메소드

You can attach here extra action icons, too. Result should be: $item['_editable'] = true|false $item['_deleteable'] = true|false $item['_actions'] = array( array('/* action * /') //todo ) )
public prepareRow ( array &$item ) : array
$item array
리턴 array

remove() 공개 메소드

public remove ( $pk ) : boolean
$pk
리턴 boolean

setAdd() 공개 메소드

public setAdd ( boolean $add )
$add boolean

setAddEntrypoint() 공개 메소드

public setAddEntrypoint ( string $addEntrypoint )
$addEntrypoint string

setAddIcon() 공개 메소드

public setAddIcon ( string $addIcon )
$addIcon string

setAddMultiple() 공개 메소드

public setAddMultiple ( $addMultiple )

setAddMultipleFieldContainerWidth() 공개 메소드

public setAddMultipleFieldContainerWidth ( $addMultipleFieldContainerWidth )

setAddMultipleFields() 공개 메소드

public setAddMultipleFields ( $addMultipleFields )

setAddMultipleFixedFields() 공개 메소드

public setAddMultipleFixedFields ( $addMultipleFixedFields )

setAllowCustomFieldSelection() 공개 메소드

public setAllowCustomFieldSelection ( boolean $allowExtraFieldSelection )
$allowExtraFieldSelection boolean

setAsNested() 공개 메소드

public setAsNested ( boolean $asNested )
$asNested boolean

setColumns() 공개 메소드

public setColumns ( array $columns )
$columns array

setCustomOrderBy() 공개 메소드

public setCustomOrderBy ( string $customOrderBy )
$customOrderBy string

setDefaultLimit() 공개 메소드

public setDefaultLimit ( integer $defaultLimit )
$defaultLimit integer

setDomain() 공개 메소드

public setDomain ( integer $domain )
$domain integer

setDomainDepended() 공개 메소드

public setDomainDepended ( boolean $domainDepended )
$domainDepended boolean

setEdit() 공개 메소드

public setEdit ( boolean $edit )
$edit boolean

setEditEntrypoint() 공개 메소드

public setEditEntrypoint ( string $editEntrypoint )
$editEntrypoint string

setEditIcon() 공개 메소드

public setEditIcon ( $editIcon )

setExtraSelection() 공개 메소드

public setExtraSelection ( array | string $selection )
$selection array | string

setFields() 공개 메소드

public setFields ( array $fields )
$fields array

setFilter() 공개 메소드

public setFilter ( array $filter )
$filter array

setFilterFields() 공개 메소드

public setFilterFields ( $filterFields )

setItemLayout() 공개 메소드

public setItemLayout ( $itemLayout )

setItemsPerPage() 공개 메소드

public setItemsPerPage ( integer $itemsPerPage )
$itemsPerPage integer

setLanguage() 공개 메소드

public setLanguage ( string $language )
$language string

setMultiLanguage() 공개 메소드

public setMultiLanguage ( boolean $multiLanguage )
$multiLanguage boolean

setNestedAddWithPositionSelection() 공개 메소드

public setNestedAddWithPositionSelection ( $nestedAddWithPositionSelection )

setNestedMoveable() 공개 메소드

public setNestedMoveable ( $nestedMoveable )

setNestedRootAdd() 공개 메소드

public setNestedRootAdd ( $nestedRootAdd )

setNestedRootAddEntrypoint() 공개 메소드

public setNestedRootAddEntrypoint ( $nestedRootAddEntrypoint )

setNestedRootAddIcon() 공개 메소드

public setNestedRootAddIcon ( $nestedRootAddIcon )

setNestedRootAddLabel() 공개 메소드

public setNestedRootAddLabel ( $nestedRootAddLabel )

setNestedRootEdit() 공개 메소드

public setNestedRootEdit ( $nestedRootEdit )

setNestedRootEditEntrypoint() 공개 메소드

public setNestedRootEditEntrypoint ( $nestedRootEditEntrypoint )

setNestedRootRemove() 공개 메소드

public setNestedRootRemove ( $nestedRootRemove )

setNestedRootRemoveEntrypoint() 공개 메소드

public setNestedRootRemoveEntrypoint ( $nestedRootRemoveEntrypoint )

setNewLabel() 공개 메소드

public setNewLabel ( $newLabel )

setObject() 공개 메소드

public setObject ( string $object )
$object string

setObjectBased() 공개 메소드

public setObjectBased ( boolean $objectBased )
$objectBased boolean

setObjectDefinition() 공개 메소드

public setObjectDefinition ( array $objectDefinition )
$objectDefinition array

setOrder() 공개 메소드

public setOrder ( array $order )
$order array

setOrderBy() 공개 메소드

public setOrderBy ( string $orderBy )
$orderBy string

setOrderByDirection() 공개 메소드

public setOrderByDirection ( string $orderByDirection )
$orderByDirection string

setPermissionCheck() 공개 메소드

public setPermissionCheck ( boolean $permissionCheck )
$permissionCheck boolean

setPrimary() 공개 메소드

public setPrimary ( array $primary )
$primary array

setRemove() 공개 메소드

public setRemove ( boolean $remove )
$remove boolean

setRemoveEntrypoint() 공개 메소드

public setRemoveEntrypoint ( $removeEntrypoint )

setRemoveIcon() 공개 메소드

public setRemoveIcon ( string $removeIcon )
$removeIcon string

setRemoveIconItem() 공개 메소드

public setRemoveIconItem ( string $removeIconItem )
$removeIconItem string

setStartCombine() 공개 메소드

public setStartCombine ( boolean $startCombine )
$startCombine boolean

setTable() 공개 메소드

public setTable ( string $table )
$table string

setUsePatch() 공개 메소드

public setUsePatch ( boolean $usePatch )
$usePatch boolean

setWithNewsFeed() 공개 메소드

public setWithNewsFeed ( boolean $withNewsFeed )
$withNewsFeed boolean

setWorkspace() 공개 메소드

public setWorkspace ( boolean $workspace )
$workspace boolean

toIdIndex() 공개 메소드

public toIdIndex ( Field[] $fieldArray )
$fieldArray Jarves\Configuration\Field[]

translate() 공개 메소드

public translate ( &$field )
$field

translateFields() 공개 메소드

Translate the label/title item of $fields.
public translateFields ( array | Field $fields )
$fields array | Jarves\Configuration\Field

update() 공개 메소드

Updates a object entry. This means, all fields which are not defined will be saved as NULL.
public update ( array $pk, Request | array $requestOrData ) : boolean
$pk array
$requestOrData Symfony\Component\HttpFoundation\Request | array
리턴 boolean

프로퍼티 상세

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

Flatten list of fields.
protected Field[],Jarves\Configuration $_fields
리턴 Jarves\Configuration\Field[]

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

protected ACL,Jarves $acl
리턴 Jarves\ACL

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

Defines whether the add button should be displayed
protected bool $add
리턴 boolean

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

Default is /. Relative or absolute paths are allowed. Empty means current entrypoint.
protected string $addEntrypoint
리턴 string

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

Defines the icon for the add button. Relative to media/ or #className for vector images
protected $addIcon

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

protected $addMultiple

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

protected $addMultipleFieldContainerWidth

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

protected $addMultipleFields

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

protected $addMultipleFixedFields

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

(?fields=...)
protected bool $allowCustomFieldSelection
리턴 boolean

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

Is automatically set when object property is defined.
protected bool $asNested
리턴 boolean

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

This is used by the listing crud window (and GET of the REST api) Only one level, no children, no tabs. Use the crud editor, to get the list of possible types.
protected array $columns
리턴 array

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

protected ConditionOperator,Jarves $conditionOperator
리턴 Jarves\ConditionOperator

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

Order field
protected string $customOrderBy
리턴 string

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

Defines how many items should be displayed per page.
protected $defaultLimit

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

The current domain id to filter if domainDepended is enabled.
protected int $domain
리턴 integer

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

Note: Your table need a field 'domain_id' int. The windowList class filter by this.
protected bool $domainDepended
리턴 boolean

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

Defines whether the edit button should be displayed
protected bool $edit
리턴 boolean

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

Default is /. Relative or absolute paths are allowed. Empty means current entrypoint.
protected string $editEntrypoint
리턴 string

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

Defines the icon for the edit button. Relative to media/ or #className for vector images
protected $editIcon

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

protected EventDispatcherInterface,Symfony\Component\EventDispatcher $eventDispatcher
리턴 Symfony\Component\EventDispatcher\EventDispatcherInterface

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

Only field names allowed that are available by the underlying object. Comma separated or as array.
protected string|array $extraSelection
리턴 string | array

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

Can contains several fields nested, via 'children', also type 'tab' are allowed. Every jarves.field is allowed.
protected array $fields
리턴 array

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

Contains the fields for the search.
protected array $filter
리턴 array

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

protected array $filterFields
리턴 array

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

protected string $itemLayout
리턴 string

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

protected int $itemsPerPage
리턴 integer

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

protected Jarves,Jarves $jarves
리턴 Jarves\Jarves

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

The current language to filter if multiLanguage is enabled.
protected string $language
리턴 string

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

Note: Your table need a field 'lang' varchar(2). The windowList class filter by this. If the object is nested=true and have a root object
protected bool $multiLanguage
리턴 boolean

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

protected $nestedAddWithPositionSelection

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

protected $nestedMoveable

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

protected $nestedRootAdd

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

protected $nestedRootAddEntrypoint

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

protected $nestedRootAddIcon

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

protected $nestedRootAddLabel

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

protected $nestedRootEdit

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

protected $nestedRootEditEntrypoint

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

protected $nestedRootRemove

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

protected $nestedRootRemoveEntrypoint

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

protected $newLabel

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

Defines the object which should be used.
protected $object

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

Whether this CRUD view is based on a object with an id.
protected bool $objectBased
리턴 boolean

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

Copy of the object definition, by is being set in the initialisation. Only set when object property is defined.
protected Object,Jarves\Configuration $objectDefinition
리턴 Jarves\Configuration\Object

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

protected Objects,Jarves $objects
리턴 Jarves\Objects

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

array( array('field' => 'group_id', 'direction' => 'asc'), array('field' => 'title', 'direction' => 'asc') ); or array( 'group_id' => 'asc', 'title' => 'desc' )
protected array $order
리턴 array

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

Order field
protected string $orderBy
리턴 string

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

Order direction
protected string $orderByDirection
리턴 string

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

Deactivate this means this object does not listen to any ACL.
protected bool $permissionCheck
리턴 boolean

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

Example: $primary = array('id'); Example: $primary = array('id', 'name'); Use this only if you know, what you're doing, normally this comes from the object settings.
protected array $primary
리턴 array

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

If the class created a item through addItem(), it contains the primary key of the newly created item. array( 'id' => 1234 ) array( 'id' => 1234, 'subId' => 5678 )
또한 보기: getPrimaryKey()
protected array $primaryKey
리턴 array

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

Defines whether the remove/delete button should be displayed Also on each row the Delete-Button and the checkboxes.
protected bool $remove
리턴 boolean

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

protected string $removeEntrypoint
리턴 string

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

Defines the icon for the remove/delete button. Relative to media/ or #className for vector images
protected $removeIcon

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

Defines the icon for the remove/delete button. Relative to media/ or #className for vector images
protected $removeIconItem

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

protected RequestStack,Symfony\Component\HttpFoundation $requestStack
리턴 Symfony\Component\HttpFoundation\RequestStack

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

protected $startCombine

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

Use this only if you know, what you're doing, normally this comes from the object definition from the object property.
protected $table

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

protected Translator,Jarves\Translation $translator
리턴 Jarves\Translation\Translator

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

'PUT' requires that you send all field, and 'PATCH' only the fields that need to be updated.
protected bool $usePatch
리턴 boolean

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

protected Utils,Jarves $utils
리턴 Jarves\Utils

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

protected bool $withNewsFeed
리턴 boolean

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

Needs a column workspace_id in the table or active workspace at object.
protected bool $workspace
리턴 boolean