ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilAssLacAbstractExpression Class Reference

Class AbstractExpression. More...

+ Inheritance diagram for ilAssLacAbstractExpression:
+ Collaboration diagram for ilAssLacAbstractExpression:

Public Member Functions

 parseValue ($value)
 Parses the delivered Value and sets the relevant information for an Expression as attributes. More...
 
- Public Member Functions inherited from ilAssLacAbstractComposite
 addNode (ilAssLacCompositeInterface $node)
 Adds an ilAssLacCompositeInterface object to the node array which represents the condition tree structure. More...
 
 describe ()
 Describes a Composite tree Structure as human readable string. More...
 
- Public Member Functions inherited from ilAssLacCompositeInterface
 getDescription ()
 Get a human readable description of the Composite element. More...
 
- Public Member Functions inherited from ilAssLacExpressionInterface
 getValue ()
 Get the value of this Expression. More...
 

Protected Member Functions

 getPattern ()
 Get the Pattern to match relevant informations for an Expression. More...
 
 setMatches ($matches)
 Sets the result of the parsed value by a specific expression pattern. More...
 

Additional Inherited Members

- Data Fields inherited from ilAssLacAbstractComposite
 $nodes = array()
 

Detailed Description

Class AbstractExpression.

Date: 25.03.13 Time: 15:42

Author
Thomas Joußen tjous.nosp@m.sen@.nosp@m.datab.nosp@m.ay.d.nosp@m.e

Definition at line 13 of file ilAssLacAbstractExpression.php.

Member Function Documentation

◆ getPattern()

ilAssLacAbstractExpression::getPattern ( )
protected

Get the Pattern to match relevant informations for an Expression.

Returns
string

Definition at line 20 of file ilAssLacAbstractExpression.php.

Referenced by parseValue().

21  {
22  return '/-?[0-9\.]+/';
23  }
+ Here is the caller graph for this function:

◆ parseValue()

ilAssLacAbstractExpression::parseValue (   $value)

Parses the delivered Value and sets the relevant information for an Expression as attributes.

Parameters
string$value

Implements ilAssLacExpressionInterface.

Definition at line 30 of file ilAssLacAbstractExpression.php.

References $result, array, getPattern(), and setMatches().

31  {
32  $result = array();
33  preg_match_all($this->getPattern(), $value, $result);
34  $this->setMatches($result);
35  }
$result
getPattern()
Get the Pattern to match relevant informations for an Expression.
Create styles array
The data for the language used.
setMatches($matches)
Sets the result of the parsed value by a specific expression pattern.
+ Here is the call graph for this function:

◆ setMatches()

ilAssLacAbstractExpression::setMatches (   $matches)
abstractprotected

Sets the result of the parsed value by a specific expression pattern.

See also
ExpressionInterface::parseValue()
ExpressionInterface::getPattern()
Parameters
array$matches

Referenced by parseValue().

+ Here is the caller graph for this function:

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