PHP 클래스 Devise\Pages\Collections\CollectionsManager

파일 보기 프로젝트 열기: devisephp/cms 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$CollectionInstance DvsCollectionInstance DvsCollectionInstance model
$Field DvsField DvsField model

공개 메소드들

메소드 설명
__construct ( DvsCollectionInstance $CollectionInstance, DvsField $Field ) Create a new collections manager object
createNewInstance ( array $input ) : CollectionInstance Create a new collection instance
createNewInstanceField ( [type] $instance, $fieldInput ) : [type] [createNewInstanceField description]
removeInstance ( integer $id ) : boolean Remove instance from database
updateInstanceName ( $id, $name ) : CollectionInstance Update the collection instance name
updateInstanceSort ( $id, $sort ) : CollectionInstance Updates the instance with input data

보호된 메소드들

메소드 설명
findSortNumber ( $instance ) : [type] Gets the correct sort number

메소드 상세

__construct() 공개 메소드

Create a new collections manager object
public __construct ( DvsCollectionInstance $CollectionInstance, DvsField $Field )
$CollectionInstance DvsCollectionInstance
$Field DvsField

createNewInstance() 공개 메소드

Create a new collection instance
public createNewInstance ( array $input ) : CollectionInstance
$input array
리턴 CollectionInstance

createNewInstanceField() 공개 메소드

[createNewInstanceField description]
public createNewInstanceField ( [type] $instance, $fieldInput ) : [type]
$instance [type]
리턴 [type]

findSortNumber() 보호된 메소드

Gets the correct sort number
protected findSortNumber ( $instance ) : [type]
리턴 [type]

removeInstance() 공개 메소드

Remove instance from database
public removeInstance ( integer $id ) : boolean
$id integer
리턴 boolean

updateInstanceName() 공개 메소드

Update the collection instance name
public updateInstanceName ( $id, $name ) : CollectionInstance
리턴 CollectionInstance

updateInstanceSort() 공개 메소드

Updates the instance with input data
public updateInstanceSort ( $id, $sort ) : CollectionInstance
리턴 CollectionInstance

프로퍼티 상세

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

DvsCollectionInstance model
protected DvsCollectionInstance $CollectionInstance
리턴 DvsCollectionInstance

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

DvsField model
protected DvsField $Field
리턴 DvsField