/** * Creates a list of favorites for the logged in user. * * @param $name the name of the list * @return int the identifier of the list */ public function execute() { $ret = Api_Bo_Favorites::createList($this->name, $this->getAppId(), $this->getUserId()); $response = array(); $response['result'] = $ret === false ? '0' : $ret; return $response; }
/** * Helper method to create a list * * @param unknown_type $name * @param unknown_type $app_id * @param unknown_type $uid * @return unknown */ public static function createList($name, $app_id, $uid) { return Api_Bo_Favorites::createList($name, $app_id, $uid); }