public static function getPlugin($actived=null, $keypath=null, $array=true)
	{
		$criteria=new CDbCriteria;
		if($actived != null)
			$criteria->compare('actived', $actived);
		$criteria->addNotInCondition('orders', array(0));
		if($actived == null || $actived == 0)
			$criteria->order = 'folder ASC';
		else
			$criteria->order = 'orders ASC';
		
		$model = self::model()->findAll($criteria);

		if($array == true) {
			$items = array();
			if($model != null) {
				foreach($model as $key => $val) {
					if($keypath == null || $keypath == 'id')
						$items[$val->plugin_id] = $val->name;
					else
						$items[$val->folder] = $val->name;
				}
				return $items;
			} else
				return false;
		} else
			return $model;
	}