Mobile.class.php 619 Bytes
<?php
class Facade_Mobile
{
	/**
	 * 服务
	 */
	private static $service = null;
	/**
	 *
	 * @return Service_News
	 */
	private static function service ()
	{
		if (! isset(self::$service))
		{
			self::$service = new Service_Mobile();
		}
		return self::$service;
	}
	
	/**
	 * 获取模块
	 *
	 * @return array
	 */	
	public static function getModule()
	{
		return self::service()->getModule();
	}

	/**
	 * 设置模块状态
	 *
	 * @param int $id
	 * @param int $status
	 * @return boolan
	 */
	public static function setModuleStatus($id, $status)
	{
		return self::service()->setModuleStatus($id, $status);
	}
}