PHP Class 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 .
Inheritance: extends abstractCore
ファイルを表示 Open project: intelliants/subrion Class Usage Examples

Protected Properties

Property Type Description
$_table
$_tableGroups
$_tablePages
$_tableRelations

Public Methods

Method Description
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 )

Protected Methods

Method Description
_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 )

Private Methods

Method Description
_getFieldgroups ( $aco = null, $itemName = null, $aWhere = '', &$itemData, $params = [] )

Method Details

_checkItem() protected method

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

_generateFileName() protected static method

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

_handleRelations() protected static method

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

_processFileField() protected static method

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

_processImageField() protected static method

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

filter() public method

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

filterByGroup() public method

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

generateTabs() public method

public generateTabs ( array $fieldgroups )
$fieldgroups array

getAcoFieldsList() public static method

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

getByItemName() public method

public getByItemName ( $itemName )

getGroups() public method

public getGroups ( $itemName )

getImageFields() public method

public getImageFields ( $itemFilter = null )

getStorageFields() public method

public getStorageFields ( $itemFilter = null )

getTableGroups() public static method

public static getTableGroups ( )

getTablePages() public static method

public static getTablePages ( )

getTableRelations() public static method

public static getTableRelations ( )

getTreeNode() public method

public getTreeNode ( $condition )

getTreeNodes() public method

public getTreeNodes ( $condition = '' )

getValues() public method

public getValues ( $field, $item )

keepValues() public static method

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)
return void

parsePost() public method

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

Property Details

$_table protected_oe static_oe property

protected static $_table

$_tableGroups protected_oe static_oe property

protected static $_tableGroups

$_tablePages protected_oe static_oe property

protected static $_tablePages

$_tableRelations protected_oe static_oe property

protected static $_tableRelations