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


PHP POD::genLinkSql方法代碼示例

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


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

示例1: logLinkGroupMember

 public function logLinkGroupMember($req, $lk, $arg)
 {
     $db = new POD();
     $p = $db->connect();
     if ($p == false) {
         throw new Exception('Database connect failed');
     }
     $map = array('researchGroupMemberItem' => 'res_member', 'researchGroupLogItem' => 'res_group_log');
     $table = array('res_member', 'res_group_log');
     $sql = $db->genLinkSql($req, $lk, $arg, $table, $map);
     $res = $db->query($sql);
     return $res;
 }
開發者ID:muzhiqiang,項目名稱:school,代碼行數:13,代碼來源:researchGroupLogItem.php

示例2: stuLinkClass

 public function stuLinkClass($req, $lk, $arg)
 {
     $db = new POD();
     $p = $db->connect();
     if ($p == false) {
         throw new Exception('Database connect failed');
     }
     $map = array('studentIdentityItem' => 'stu_identification_info', 'studentInfoItem' => 'stu_basic_info');
     $table = array('stu_identification_info', 'stu_basic_info');
     $sql = $db->genLinkSql($req, $lk, $arg, $table, $map);
     $res = $db->query($sql);
     return $res;
 }
開發者ID:muzhiqiang,項目名稱:school,代碼行數:13,代碼來源:evaluateTypeItem.php

示例3: leaderLinkStudent

 public function leaderLinkStudent($req, $lk, $arg)
 {
     $db = new POD();
     $p = $db->connect();
     if ($p == false) {
         throw new Exception('Database connect failed');
     }
     $map = array('classLeaderItem' => 'class_leader', 'studentInfoItem' => 'stu_basic_info');
     $table = array('class_leader', 'stu_basic_info');
     $sql = $db->genLinkSql($req, $lk, $arg, $table, $map);
     $res = $db->query($sql);
     return $res;
 }
開發者ID:muzhiqiang,項目名稱:school,代碼行數:13,代碼來源:classLeaderItem.php

示例4: messageLinkContent

 public function messageLinkContent($req, $lk, $arg)
 {
     $db = new POD();
     $p = $db->connect();
     if ($p == false) {
         throw new Exception('Database connect failed');
     }
     $map = array('messageContentItem' => 'message', 'messageContraceItem' => 'message_interconnect');
     $table = array('message', 'message_interconnect');
     $sql = $db->genLinkSql($req, $lk, $arg, $table, $map);
     $res = $db->query($sql);
     return $res;
 }
開發者ID:muzhiqiang,項目名稱:school,代碼行數:13,代碼來源:messageContraceItem.php

示例5: awardLinkTeacher

 public function awardLinkTeacher($req, $lk, $arg)
 {
     $db = new POD();
     $p = $db->connect();
     if ($p == false) {
         throw new Exception('Database connect failed');
     }
     $map = array('teacherInfoItem' => 'teacher_basic_info', 'teacherAwardItem' => 'teacher_award');
     $table = array('teacher_award', 'teacher_basic_info');
     $sql = $db->genLinkSql($req, $lk, $arg, $table, $map);
     $res = $db->query($sql);
     return $res;
 }
開發者ID:muzhiqiang,項目名稱:school,代碼行數:13,代碼來源:teacherAwardItem.php

示例6: projectLinkGroup

 public function projectLinkGroup($req, $lk, $arg)
 {
     $db = new POD();
     $p = $db->connect();
     if ($p == false) {
         throw new Exception('Database connect failed');
     }
     $map = array('researchGroupProjectItem' => 'res_group_achievement', 'researchGroupItem' => 'res_group');
     $table = array('res_group_achievement', 'res_group');
     $sql = $db->genLinkSql($req, $lk, $arg, $table, $map);
     $res = $db->query($sql);
     return $res;
 }
開發者ID:muzhiqiang,項目名稱:school,代碼行數:13,代碼來源:researchGroupProjectItem.php

示例7: test2Action

 public function test2Action()
 {
     require $_SERVER['DOCUMENT_ROOT'] . '/school' . '/model/pod.php';
     $db = new POD();
     $p = $db->connect();
     if ($p == false) {
         throw new Exception('Database connect failed');
     }
     $req = array();
     $lk = array('account');
     $req[0] = array('key' => 'account', 'account' => '111', 'table' => 'p');
     $arg = array('name', 'password');
     $table = array('Person', 'Account');
     $map = array('p' => 'Person', 'a' => 'Account');
     $sql = $db->genLinkSql($req, $lk, $arg, $table, $map);
     //echo $sql;
     //exit;
     $res = $db->query($sql);
     return $res;
 }
開發者ID:muzhiqiang,項目名稱:school,代碼行數:20,代碼來源:test.php


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