/** * Constructor * * @param boolean $nonEmpty Non-empty flag OPTIONAL * @param string $regExp Regular expression OPTIONAL * * @return void */ public function __construct($nonEmpty = false, $regExp = null, $class = '', $id = null) { parent::__construct($nonEmpty, $this->getCleanURLPattern()); if (empty($class)) { \Includes\ErrorHandler::fireError(static::t('Empty "class" parameter is passed to the {{method}}', array('method' => __METHOD__))); } else { $this->class = $class; $this->id = $id; } }