PHP 클래스 RCCWP_CustomGroup, Magic-Fields

파일 보기 프로젝트 열기: hunk/Magic-Fields 1 사용 예제들

공개 메소드들

메소드 설명
Create ( unknown_type $customWritePanelId, unknown_type $name, unknown_type $duplicate, $expanded = 1, unknown_type $at_right ) : the Create a new group in a write panel
Delete ( integer $customGroupId = null ) Delete a group given id
Get ( integer $groupId ) : an Get group properties
GetCustomFields ( integer $customGroupId ) : an Get a list of the custom fields of a group
HasCustomfields ( $customGroupId ) : boolean Has custom fields the group?
Update ( $customGroupId, unknown_type $name, unknown_type $duplicate, $expanded, unknown_type $at_right ) Update the group

메소드 상세

Create() 공개 정적인 메소드

Create a new group in a write panel
public static Create ( unknown_type $customWritePanelId, unknown_type $name, unknown_type $duplicate, $expanded = 1, unknown_type $at_right ) : the
$customWritePanelId unknown_type
$name unknown_type group name
$duplicate unknown_type a boolean indicating whether the group can be duplicated
$at_right unknown_type a boolean indicating whether the group should be placed at right side.
리턴 the id of the new group

Delete() 공개 정적인 메소드

Delete a group given id
public static Delete ( integer $customGroupId = null )
$customGroupId integer

Get() 공개 정적인 메소드

Get group properties
public static Get ( integer $groupId ) : an
$groupId integer
리턴 an object representing the group

GetCustomFields() 공개 정적인 메소드

Get a list of the custom fields of a group
public static GetCustomFields ( integer $customGroupId ) : an
$customGroupId integer the group id
리턴 an array of objects containing information about fields. Each object contains 3 objects: properties, options and default_value

HasCustomfields() 공개 정적인 메소드

Has custom fields the group?
public static HasCustomfields ( $customGroupId ) : boolean
리턴 boolean

Update() 공개 정적인 메소드

Update the group
public static Update ( $customGroupId, unknown_type $name, unknown_type $duplicate, $expanded, unknown_type $at_right )
$name unknown_type group name
$duplicate unknown_type a boolean indicating whether the group can be duplicated
$at_right unknown_type a boolean indicating whether the group should be placed at right side.