本文整理汇总了PHP中Options::getReligionOption方法的典型用法代码示例。如果您正苦于以下问题:PHP Options::getReligionOption方法的具体用法?PHP Options::getReligionOption怎么用?PHP Options::getReligionOption使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Options
的用法示例。
在下文中一共展示了Options::getReligionOption方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: json_encode
<?php
require_once '../php_include/db_connection.php';
require_once '../classes/AllClasses.php';
$option = new Options();
$opt = $option->getReligionOption();
$success = '1';
$msg = 'success';
echo json_encode(array('success' => $success, 'msg' => $msg, 'options' => $opt));
示例2:
//fetching images of user based on fbid
$albums=Users::getPhotosJson($fb_token,$album_id);
//saving images fetched in album
$albums_saved= Users::AddPhotos($uid,$albums,$fb_token);
}*/
$data = Users::fbsignin($fbid);
$user_id = $data['user_id'];
$friend_count = GeneralFunctions::getAllFriendsCount($user_id);
$partner_pref = Users::getPartnerPref($user_id);
$success = "1";
$msg = "Login Successful";
$login_parameter = '2';
//all category based options
$religion = $option->getReligionOption();
$relation = $option->getRelationOption();
$education = $option->getEducationOption();
$profession = $option->getProfessionOption();
$dating_pref = $option->getDatingPref();
$food_pref = $option->getFoodPref();
$sexual_pref = $option->getSexualPref();
$smoking = $option->getSmokingOption();
$drinking = $option->getDrinkingOption();
$gender = $option->getGender();
$height = $option->getHeight();
$age = $option->getAge();
$city = $option->getCity();
$preference_listing['religion'] = $religion;
$preference_listing['relation'] = $relation;
$preference_listing['education'] = $education;