本文整理匯總了PHP中application::setIsverified方法的典型用法代碼示例。如果您正苦於以下問題:PHP application::setIsverified方法的具體用法?PHP application::setIsverified怎麽用?PHP application::setIsverified使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類application
的用法示例。
在下文中一共展示了application::setIsverified方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getApplication
public static function getApplication($application_id)
{
$db = Connection::getInstance();
$mysqli = $db->getConnection();
$query = "select * from application where application_id='{$application_id}';";
$result = $mysqli->query($query);
$application = new application();
if ($result->num_rows > 0) {
if ($row = $result->fetch_assoc()) {
$application->setSchool_id($row["schoolId"]);
$application->setApplication_id($row["application_id"]);
$application->setApplicant_id($row["applicantId"]);
$application->setType($row["typeOfApplication"]);
$application->setMedium($row["medium"]);
$application->setOrderOfPreference($row["orderOfPreference"]);
$application->setDistance($row["distanceToSchool"]);
$application->setIsverified($row["isverified"]);
}
}
return $application;
}