Class arFieldList.
More...
◆ __construct()
◆ checkAttributes()
static arFieldList::checkAttributes |
( |
array |
$attributes | ) |
|
|
staticprotected |
◆ getAllowedConnectorFields()
static arFieldList::getAllowedConnectorFields |
( |
| ) |
|
|
static |
◆ getAllowedDescriptionFields()
static arFieldList::getAllowedDescriptionFields |
( |
| ) |
|
|
static |
◆ getArrayForConnector()
arFieldList::getArrayForConnector |
( |
| ) |
|
◆ getFieldByName()
arFieldList::getFieldByName |
( |
|
$field_name | ) |
|
- Parameters
-
- Returns
- arField
Definition at line 188 of file class.arFieldList.php.
References getFields().
192 $field_key = $this->ar->getConnectorContainerName() .
'.' . $field_name;
193 if (is_array($field_map) && array_key_exists($field_key, $field_map)) {
194 return $field_map[$field_key];
197 if ($field->getName() == $field_name) {
198 $field_map[$field_key] = $field;
◆ getFields()
arFieldList::getFields |
( |
| ) |
|
◆ getInstance()
◆ getInstanceFromStorage()
static arFieldList::getInstanceFromStorage |
( |
|
$ar | ) |
|
|
static |
◆ getPrimaryField()
arFieldList::getPrimaryField |
( |
| ) |
|
◆ getPrimaryFieldName()
arFieldList::getPrimaryFieldName |
( |
| ) |
|
◆ getPrimaryFields()
arFieldList::getPrimaryFields |
( |
| ) |
|
◆ getPrimaryFieldType()
arFieldList::getPrimaryFieldType |
( |
| ) |
|
◆ getRawFields()
arFieldList::getRawFields |
( |
| ) |
|
◆ initFields()
arFieldList::initFields |
( |
| ) |
|
|
protected |
◆ initRawFields()
- Parameters
-
\ActiveRecord | \arStorageInterface | $ar | |
- Returns
- array
Definition at line 247 of file class.arFieldList.php.
References $raw_fields, and setRawFields().
249 $regex =
"/[ ]*\\* @(" . implode(
'|', self::$prefixes) .
")_([a-zA-Z0-9_]*)[ ]*([a-zA-Z0-9_]*)/u";
252 foreach ($reflectionClass->getProperties() as $property) {
253 if (in_array($property->getName(), self::$protected_names)) {
256 $properties_array = array();
257 $has_property =
false;
258 foreach (explode(
"\n", $property->getDocComment()) as $line) {
259 if (preg_match($regex, $line, $matches)) {
260 $has_property =
true;
261 $properties_array[(string) $matches[2]] = $matches[3];
265 $raw_fields[$property->getName()] = $properties_array;
setRawFields($raw_fields)
◆ isAllowedAttribute()
static arFieldList::isAllowedAttribute |
( |
|
$attribute_name | ) |
|
|
staticprotected |
- Parameters
-
- Returns
- bool
Definition at line 278 of file class.arFieldList.php.
280 return in_array($attribute_name, array_merge(self::$allowed_description_fields, array( self::HAS_FIELD )));
◆ isField()
arFieldList::isField |
( |
|
$field_name | ) |
|
◆ mapKey()
static arFieldList::mapKey |
( |
|
$key | ) |
|
|
static |
◆ setFields()
arFieldList::setFields |
( |
|
$fields | ) |
|
◆ setPrimaryField()
arFieldList::setPrimaryField |
( |
|
$primary_field | ) |
|
◆ setPrimaryFields()
arFieldList::setPrimaryFields |
( |
|
$primary_fields | ) |
|
◆ setRawFields()
arFieldList::setRawFields |
( |
|
$raw_fields | ) |
|
◆ $allowed_connector_fields
arFieldList::$allowed_connector_fields |
|
staticprotected |
Initial value:= array(
self::IS_NOTNULL,
self::FIELDTYPE,
self::LENGTH,
)
Definition at line 43 of file class.arFieldList.php.
◆ $allowed_description_fields
arFieldList::$allowed_description_fields |
|
staticprotected |
Initial value:= array(
'is_unique',
self::IS_PRIMARY,
self::IS_NOTNULL,
self::FIELDTYPE,
self::LENGTH,
self::SEQUENCE,
self::INDEX
)
Definition at line 31 of file class.arFieldList.php.
◆ $ar
◆ $fields
arFieldList::$fields = array() |
|
protected |
◆ $key_maps
Initial value:= array(
self::FIELDTYPE => 'type',
self::IS_NOTNULL => 'notnull',
)
Definition at line 71 of file class.arFieldList.php.
◆ $prefixes
arFieldList::$prefixes = array( 'db', 'con' ) |
|
staticprotected |
◆ $primary_field
arFieldList::$primary_field |
|
protected |
◆ $primary_fields
arFieldList::$primary_fields = array() |
|
protected |
◆ $protected_names
◆ $raw_fields
arFieldList::$raw_fields = array() |
|
protected |
◆ FIELDTYPE
const arFieldList::FIELDTYPE = 'fieldtype' |
◆ HAS_FIELD
const arFieldList::HAS_FIELD = 'has_field' |
◆ INDEX
const arFieldList::INDEX = 'index' |
◆ IS_NOTNULL
const arFieldList::IS_NOTNULL = 'is_notnull' |
◆ IS_PRIMARY
const arFieldList::IS_PRIMARY = 'is_primary' |
◆ LENGTH
const arFieldList::LENGTH = 'length' |
◆ SEQUENCE
const arFieldList::SEQUENCE = 'sequence' |
The documentation for this class was generated from the following file: