/** * Enter description here... * * @param unknown_type $userId * @param unknown_type $aid * @return unknown */ public static function getUserApp($userId, $aid = null) { if (self::isEmpty($aid)) { return Api_Dao_UsersApp::getUserAppByUserId($userId, $aid)->toArray(); } else { return Api_Dao_UsersApp::getUserAppByAppIdAndUserId($userId, $aid)->toArray(); } }