PHP Класс iaField

Subrion - open source content management system Copyright (C) 2016 Intelliants, LLC This file is part of Subrion. Subrion is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Subrion is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Subrion. If not, see .
Наследование: extends abstractCore
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_table
$_tableGroups
$_tablePages
$_tableRelations

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

Метод Описание
filter ( &$items, $itemName, $params = [] )
filterByGroup ( &$items, $item = false, $params = [] )
generateTabs ( array $fieldgroups )
getAcoFieldsList ( $pageName = null, $itemName = null, $aWhere = '', $aAllFieldInfo = false, $aItemData = false, $params = [] ) getAcoFieldsList
getByItemName ( $itemName )
getGroups ( $itemName )
getImageFields ( $itemFilter = null )
getStorageFields ( $itemFilter = null )
getTableGroups ( )
getTablePages ( )
getTableRelations ( )
getTreeNode ( $condition )
getTreeNodes ( $condition = '' )
getValues ( $field, $item )
keepValues ( array &$itemData, array $fields, array $extraValues = [], array $data = null ) : void Sets elements of array according to provided fields structure
parsePost ( array $fields, $previousValues = null )

Защищенные методы

Метод Описание
_checkItem ( $items, $itemName, $fields, $forPlans, $empty )
_generateFileName ( $filename = '', $prefix = '', $glue = true )
_handleRelations ( $itemName, array $fieldsList, array &$fields )
_processFileField ( array $field, array $file, $path )
_processImageField ( array $field, array $file, $path )

Приватные методы

Метод Описание
_getFieldgroups ( $aco = null, $itemName = null, $aWhere = '', &$itemData, $params = [] )

Описание методов

_checkItem() защищенный Метод

protected _checkItem ( $items, $itemName, $fields, $forPlans, $empty )

_generateFileName() защищенный статический Метод

protected static _generateFileName ( $filename = '', $prefix = '', $glue = true )

_handleRelations() защищенный статический Метод

protected static _handleRelations ( $itemName, array $fieldsList, array &$fields )
$fieldsList array
$fields array

_processFileField() защищенный статический Метод

protected static _processFileField ( array $field, array $file, $path )
$field array
$file array

_processImageField() защищенный статический Метод

protected static _processImageField ( array $field, array $file, $path )
$field array
$file array

filter() публичный Метод

public filter ( &$items, $itemName, $params = [] )

filterByGroup() публичный Метод

public filterByGroup ( &$items, $item = false, $params = [] )

generateTabs() публичный Метод

public generateTabs ( array $fieldgroups )
$fieldgroups array

getAcoFieldsList() публичный статический Метод

getAcoFieldsList
public static getAcoFieldsList ( $pageName = null, $itemName = null, $aWhere = '', $aAllFieldInfo = false, $aItemData = false, $params = [] )

getByItemName() публичный Метод

public getByItemName ( $itemName )

getGroups() публичный Метод

public getGroups ( $itemName )

getImageFields() публичный Метод

public getImageFields ( $itemFilter = null )

getStorageFields() публичный Метод

public getStorageFields ( $itemFilter = null )

getTableGroups() публичный статический Метод

public static getTableGroups ( )

getTablePages() публичный статический Метод

public static getTablePages ( )

getTableRelations() публичный статический Метод

public static getTableRelations ( )

getTreeNode() публичный Метод

public getTreeNode ( $condition )

getTreeNodes() публичный Метод

public getTreeNodes ( $condition = '' )

getValues() публичный Метод

public getValues ( $field, $item )

keepValues() публичный статический Метод

Sets elements of array according to provided fields structure
public static keepValues ( array &$itemData, array $fields, array $extraValues = [], array $data = null ) : void
$itemData array resulting array
$fields array standard fields structure returned by methods of this class
$extraValues array values that will be merged to $itemData
$data array source data (POST values are used if nothing specified)
Результат void

parsePost() публичный Метод

public parsePost ( array $fields, $previousValues = null )
$fields array

Описание свойств

$_table защищенное статическое свойство

protected static $_table

$_tableGroups защищенное статическое свойство

protected static $_tableGroups

$_tablePages защищенное статическое свойство

protected static $_tablePages

$_tableRelations защищенное статическое свойство

protected static $_tableRelations