2 require_once(
'class.arField.php');
73 self::FIELDTYPE =>
'type',
74 self::IS_NOTNULL =>
'notnull',
96 if (isset(self::$key_maps[
$key])) {
97 return self::$key_maps[
$key];
109 return self::$allowed_connector_fields;
118 return self::$allowed_description_fields;
130 $arFieldList =
new self(
$ar);
131 $arFieldList->initRawFields($ar);
132 $arFieldList->initFields();
146 $arFieldList =
new self();
147 $arFieldList->initRawFields(
$ar);
148 $arFieldList->initFields();
161 $return[$field->getName()] = $field->getAttributesForConnector();
173 $arField->getHasField(
true);
175 $this->
fields[] = $arField;
176 if ($arField->getPrimary()) {
193 $field_key = $this->ar->getConnectorContainerName() .
'.' . $field_name;
194 if ($field_map[$field_key]) {
195 return $field_map[$field_key];
198 if ($field->getName() == $field_name) {
199 $field_map[$field_key] = $field;
216 if ($field->getName() == $field_name) {
250 $regex =
"/[ ]*\\* @(" . implode(
'|', self::$prefixes) .
")_([a-zA-Z0-9_]*)[ ]*([a-zA-Z0-9_]*)/u";
253 foreach ($reflectionClass->getProperties() as $property) {
254 if (in_array($property->getName(), self::$protected_names)) {
257 $properties_array =
array();
258 $has_property =
false;
259 foreach (explode(
"\n", $property->getDocComment()) as $line) {
260 if (preg_match($regex, $line, $matches)) {
261 $has_property =
true;
262 $properties_array[(
string) $matches[2]] = $matches[3];
266 $raw_fields[$property->getName()] = $properties_array;
281 return in_array($attribute_name, array_merge(self::$allowed_description_fields,
array( self::HAS_FIELD )));
292 if (isset($attributes[self::HAS_FIELD]) && $attributes[self::HAS_FIELD] ===
'true') {
293 foreach (array_keys($attributes) as $atr) {
294 if (!self::isAllowedAttribute($atr)) {
Class arStorageInterface.
getFieldByName($field_name)
setRawFields($raw_fields)
static getInstance(ActiveRecord $ar)
static $allowed_description_fields
setPrimaryFields($primary_fields)
static getAllowedConnectorFields()
initRawFields(arStorageInterface $ar)
static isAllowedAttribute($attribute_name)
setPrimaryField($primary_field)
static $allowed_connector_fields
static getInstanceFromStorage($ar)
Create styles array
The data for the language used.
static checkAttributes(array $attributes)
static getAllowedDescriptionFields()
__construct(ActiveRecord $ar)
arFieldList constructor.