PHP Класс RCCWP_CustomGroup, Magic-Fields

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.