當前位置: 首頁>>代碼示例>>PHP>>正文


PHP StudentInfo::getName方法代碼示例

本文整理匯總了PHP中StudentInfo::getName方法的典型用法代碼示例。如果您正苦於以下問題:PHP StudentInfo::getName方法的具體用法?PHP StudentInfo::getName怎麽用?PHP StudentInfo::getName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在StudentInfo的用法示例。


在下文中一共展示了StudentInfo::getName方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: UpdateStudentInfo

 function UpdateStudentInfo(StudentInfo $studentInfo)
 {
     $studentInfo_zkzh = $studentInfo->getZkzh();
     $studentInfo_name = $studentInfo->getName();
     $studentInfo_sex = $studentInfo->getSex();
     $studentInfo_kslb = $studentInfo->getKslb();
     $studentInfo_zzmm = $studentInfo->getZzmm();
     $studentInfo_nation = $studentInfo->getNation();
     $studentInfo_byxx = $studentInfo->getByxx();
     $studentInfo_hkszd = $studentInfo->getHkszd();
     $studentInfo_address = $studentInfo->getAddress();
     $studentInfo_telephone = $studentInfo->getTelephone();
     $studentInfo_zcxx = $studentInfo->getZcxx();
     $studentInfo_cardNumber = $studentInfo->getCardNumber();
     $studentInfo_xjh = $studentInfo->getXjh();
     $studentInfo_gysznj = $studentInfo->getGysznj();
     $studentInfo_gesznj = $studentInfo->getGesznj();
     $studentInfo_gssznj = $studentInfo->getGssznj();
     $studentInfo_memo = $studentInfo->getMemo();
     $studentInfo_photo = $studentInfo->getPhoto();
     $sql = "update t_StudentInfo set ";
     $sql = $sql . "name='{$studentInfo_name}'";
     $sql = $sql . ",sex='{$studentInfo_sex}'";
     $sql = $sql . ",kslb='{$studentInfo_kslb}'";
     $sql = $sql . ",zzmm='{$studentInfo_zzmm}'";
     $sql = $sql . ",nation={$studentInfo_nation}";
     $sql = $sql . ",byxx='{$studentInfo_byxx}'";
     $sql = $sql . ",hkszd='{$studentInfo_hkszd}'";
     $sql = $sql . ",address='{$studentInfo_address}'";
     $sql = $sql . ",telephone='{$studentInfo_telephone}'";
     $sql = $sql . ",zcxx='{$studentInfo_zcxx}'";
     $sql = $sql . ",cardNumber='{$studentInfo_cardNumber}'";
     $sql = $sql . ",xjh='{$studentInfo_xjh}'";
     $sql = $sql . ",gysznj='{$studentInfo_gysznj}'";
     $sql = $sql . ",gesznj='{$studentInfo_gesznj}'";
     $sql = $sql . ",gssznj='{$studentInfo_gssznj}'";
     $sql = $sql . ",memo='{$studentInfo_memo}'";
     $sql = $sql . ",photo='{$studentInfo_photo}'";
     $sql = $sql . " where zkzh='{$studentInfo_zkzh}'";
     //調用數據層執行更新操作
     $sqlHelper = new SqlHelper();
     $res = $sqlHelper->execute_dml($sql);
     $sqlHelper->close_connect();
     return $res;
 }
開發者ID:otkinlife,項目名稱:MyPhalcon,代碼行數:45,代碼來源:StudentInfoService.class.php


注:本文中的StudentInfo::getName方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。