components/LessClientCompiler.php
public function init()
	{
		if (!in_array($this->env, array(self::ENV_DEVELOPMENT, self::ENV_PRODUCTION)))
			throw new CException('Failed to initialize LESS compiler. Property env must be either "development" or "production".');

		if (isset($this->dumpLineNumbers)
				&& !in_array($this->dumpLineNumbers, array(self::DLN_COMMENTS, self::DLN_MEDIAQUERY, self::DLN_ALL)))
			throw new CException('Failed to initialize LESS compiler. Property dumpLineNumber must be "comments", "mediaQuery" or "all".');
		
		parent::init();
	}
public function init()
	{
		if (!in_array($this->env, array(self::ENV_DEVELOPMENT, self::ENV_PRODUCTION)))
			throw new CException('Failed to initialize LESS compiler. Property env must be either "development" or "production".');

		if (isset($this->dumpLineNumbers)
				&& !in_array($this->dumpLineNumbers, array(self::DLN_COMMENTS, self::DLN_MEDIAQUERY, self::DLN_ALL)))
			throw new CException('Failed to initialize LESS compiler. Property dumpLineNumber must be "comments", "mediaQuery" or "all".');
		
		parent::init();
	}
public function init ( ) { if ( ! in_array ( $ this -> env , array ( self :: ENV_DEVELOPMENT , self :: ENV_PRODUCTION ) ) ) throw new CException ( 'Failed to initialize LESS compiler. Property env must be either "development" or "production".' ) ; if ( isset ( $ this -> dumpLineNumbers ) && ! in_array ( $ this -> dumpLineNumbers , array ( self :: DLN_COMMENTS , self :: DLN_MEDIAQUERY , self :: DLN_ALL ) ) ) throw new CException ( 'Failed to initialize LESS compiler. Property dumpLineNumber must be "comments", "mediaQuery" or "all".' ) ; parent :: init ( ) ; }
Initializes the component.
@throws CException if initialization fails.
Initializes the component .