Hoa central
Public Member Functions | Static Protected Attributes | List of all members
Hoa\Xyl\Interpreter\Common\Value Class Reference
Inheritance diagram for Hoa\Xyl\Interpreter\Common\Value:

Public Member Functions

static paint (Stream\IStream\Out $out)
 
- Public Member Functions inherited from Hoa\Xyl\Element\Concrete
 computeDataBinding (Array &$data, Array &$parent=null)
 
 render (Stream\IStream\Out $out)
 
 computeValue (Stream\IStream\Out $out=null)
 
 computeTransientValue (Stream\IStream\Out $out=null)
 
 computeAttributeValue ($value, $type=self::ATTRIBUTE_TYPE_UNKNOWN, $name=null)
 
 isLastIteration ()
 
 setVisibility ($visibility)
 
 getVisibility ()
 
- Public Member Functions inherited from Hoa\Xml\Element\Concrete
 __construct (Element $abstract, Element $superRoot, Array $rank=[], $namespace=null)
 
 construct ()
 
 getAbstractElement ()
 
 getAbstractElementSuperRoot ()
 
 getName ()
 
 count ()
 
 getIterator ()
 
 __set ($name, Concrete $value)
 
 __get ($name)
 
 offsetExists ($offset)
 
 offsetGet ($offset)
 
 offsetSet ($offset, $element)
 
 offsetUnset ($offset)
 
 __call ($name, Array $arguments=[])
 

Static Protected Attributes

static $_attributes
 
- Static Protected Attributes inherited from Hoa\Xyl\Element\Concrete
static $_attributes
 
- Static Protected Attributes inherited from Hoa\Xml\Element\Concrete
static $_store = []
 
static $_superRoots = []
 
static $_multiton = []
 

Additional Inherited Members

- Static Public Member Functions inherited from Hoa\Xml\Element\Concrete
static getAbstractElementId (Element $element)
 
static getConcreteElement (Element $element)
 
static getAbstractElementSuperRootOf (Element $element)
 
- Public Attributes inherited from Hoa\Xyl\Element\Concrete
const ATTRIBUTE_TYPE_UNKNOWN = 0
 
const ATTRIBUTE_TYPE_NORMAL = 1
 
const ATTRIBUTE_TYPE_ID = 2
 
const ATTRIBUTE_TYPE_CUSTOM = 4
 
const ATTRIBUTE_TYPE_LIST = 8
 
const ATTRIBUTE_TYPE_LINK = 16
 
- Protected Member Functions inherited from Hoa\Xyl\Element\Concrete
 selectData ($expression, Array &$bucket)
 
 getCurrentData ()
 
 paint (Stream\IStream\Out $out)
 
 cleanTransientValue ()
 
 formatValue ($value, $name=null)
 
 _formatValue ($value)
 
 computeFromString ($xyl)
 
 getDeclaredAttributes ()
 
- Static Protected Member Functions inherited from Hoa\Xyl\Element\Concrete
static _getDeclaredAttributes ()
 
- Protected Attributes inherited from Hoa\Xyl\Element\Concrete
 $_visibility = true
 
 $_transientValue = null
 
 $_lastIteration = false
 
- Protected Attributes inherited from Hoa\Xml\Element\Concrete
 $_name = null
 
 $_children = []
 
 $_iterator = []
 
 $abstract = null
 
 $_superRoot = null
 

Detailed Description

Class .

The

component.

Definition at line 51 of file Value.php.

Member Function Documentation

static Hoa\Xyl\Interpreter\Common\Value::paint ( Stream\IStream\Out  $out)

Paint the element.

Parameters
\Hoa\Stream\IStream\Out$outOut stream.
Returns
void

Definition at line 73 of file Value.php.

74  {
75  $value = $this->computeValue();
76 
77  if (true === $this->abstract->attributeExists('formatter')) {
78  $value = $this->formatValue(empty($value) ? null : $value);
79  }
80 
81  if (true === $this->abstract->attributeExists('link')) {
82  $out->writeAll($this->computeAttributeValue(
83  $this->abstract->readAttribute('link'),
84  parent::ATTRIBUTE_TYPE_LINK
85  ));
86 
87  return;
88  }
89 
90  $out->writeAll($value);
91 
92  return;
93  }
formatValue($value, $name=null)
Definition: Concrete.php:563
computeValue(Stream\IStream\Out $out=null)
Definition: Concrete.php:410
computeAttributeValue($value, $type=self::ATTRIBUTE_TYPE_UNKNOWN, $name=null)
Definition: Concrete.php:488

Here is the call graph for this function:

Member Data Documentation

Hoa\Xyl\Interpreter\Common\Value::$_attributes
staticprotected
Initial value:
= [
'link' => self::ATTRIBUTE_TYPE_LINK

Definition at line 60 of file Value.php.


The documentation for this class was generated from the following file: