Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
xmlfield.php
1<?php
2
4
6{
8 protected $name = '';
10 protected $multiple = false;
12 protected $subParser = null;
13
14 public function __construct($name, array $options = array())
15 {
16 $this->name = $name;
17 if(array_key_exists('multiple', $options))
18 $this->multiple = (bool)$options['multiple'];
19
20 if(array_key_exists('subParser', $options) && is_object($options['subParser']))
21 $this->subParser = $options['subParser'];
22 }
23
24 public function getName()
25 {
26 return $this->name;
27 }
28
29 public function isMultiple()
30 {
31 return $this->multiple;
32 }
33
37 public function getSubParser()
38 {
39 return $this->subParser;
40 }
41
48 public function decodeValue($value)
49 {
50 return $value;
51 }
52
53 public static function getClass()
54 {
55 return get_called_class();
56 }
57}
__construct($name, array $options=array())
Definition xmlfield.php:14