ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilAssLacAbstractExpression Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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 26 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 32 of file ilAssLacAbstractExpression.php.

Referenced by parseValue().

32  : string
33  {
34  return '/-?[0-9\.]+/';
35  }
+ 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 42 of file ilAssLacAbstractExpression.php.

References getPattern(), and setMatches().

42  : void
43  {
44  $result = array();
45  preg_match_all($this->getPattern(), $value, $result);
46  $this->setMatches($result);
47  }
getPattern()
Get the Pattern to match relevant informations for an Expression.
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: