protected function parseIteratorExp ($exp, & $idxVar, & $itVar)
  {
    if (!preg_match ('/^(?:(\w+):)?(\w+)$/', $exp, $m))
      throw new ComponentException($this,
        "Invalid value for attribute <kbd>as</kbd>.<p>Expected syntax: <kbd>'var'</kbd> or <kbd>'index:var'</kbd>");
    list (, $idxVar, $itVar) = $m;
  }
protected function parseIteratorExp ($exp, & $idxVar, & $itVar)
  {
    if (!preg_match ('/^(?:(\w+):)?(\w+)$/', $exp, $m))
      throw new ComponentException($this,
        "Invalid value for attribute <kbd>as</kbd>.<p>Expected syntax: <kbd>'var'</kbd> or <kbd>'index:var'</kbd>");
    list (, $idxVar, $itVar) = $m;
  }
protected function parseIteratorExp ( $ exp , & $ idxVar , & $ itVar ) { if ( ! preg_match ( '/^(?:(\w+):)?(\w+)$/' , $ exp , $ m ) ) throw new ComponentException ( $ this , "Invalid value for attribute <kbd>as</kbd>.<p>Expected syntax: <kbd>'var'</kbd> or <kbd>'index:var'</kbd>" ) ; list ( , $ idxVar , $ itVar ) = $ m ; }
Parses a component iterator property. Iterators are used by the `For` component, for instance.

@param string $exp
@param string $idxVar
@param string $itVar
@throws ComponentException
Parses a component iterator property . Iterators are used by the For component for instance .