You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							32 lines
						
					
					
						
							607 B
						
					
					
				
			
		
		
	
	
							32 lines
						
					
					
						
							607 B
						
					
					
				<?php | 
						|
/** | 
						|
 * ApplicationComponent class file. | 
						|
 * | 
						|
 * @link http://www.yiiframework.com/ | 
						|
 * @copyright Copyright © 2008-2012 Yii Software LLC | 
						|
 * @license http://www.yiiframework.com/license/ | 
						|
 */ | 
						|
 | 
						|
namespace yii\base; | 
						|
 | 
						|
/** | 
						|
 * ApplicationComponent is the base class for application component classes. | 
						|
 * | 
						|
 * @author Qiang Xue <qiang.xue@gmail.com> | 
						|
 * @since 2.0 | 
						|
 */ | 
						|
class ApplicationComponent extends Component | 
						|
{ | 
						|
	/** | 
						|
	 * @var string unique ID of this application component | 
						|
	 */ | 
						|
	public $id; | 
						|
 | 
						|
	public function init() | 
						|
	{ | 
						|
		parent::init(); | 
						|
		if ($this->id === null) { | 
						|
			$this->id = get_class($this); | 
						|
		} | 
						|
	} | 
						|
}
 | 
						|
 |