2require_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];
 
  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";
 
  251        $reflectionClass = 
new ReflectionClass(
$ar);
 
  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 )));
 
  294                if (!self::isAllowedAttribute($atr)) {
 
An exception for terminatinating execution or to throw for unit testing.
setPrimaryField($primary_field)
__construct(ActiveRecord $ar)
arFieldList constructor.
static checkAttributes(array $attributes)
static $allowed_description_fields
static getInstanceFromStorage($ar)
static getAllowedDescriptionFields()
static getInstance(ActiveRecord $ar)
static $allowed_connector_fields
initRawFields(arStorageInterface $ar)
setRawFields($raw_fields)
static isAllowedAttribute($attribute_name)
getFieldByName($field_name)
static getAllowedConnectorFields()
setPrimaryFields($primary_fields)
Class arStorageInterface.