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


PHP self::fetchRow方法代碼示例

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


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

示例1: getCompany

 function getCompany($stock)
 {
     $asset = new self();
     $where = "COAT_TX_ID='{$stock}'";
     $code = $asset->fetchRow($where);
     return $code->COEM_TX_ID;
 }
開發者ID:Ogwang,項目名稱:sainp,代碼行數:7,代碼來源:Stocks.php

示例2: getCountryName

 public function getCountryName($code = NULL)
 {
     $table = new self();
     $rName = $table->info('name');
     $select = $table->select()->from($rName);
     $select->where('iso_code_3 = ?', $code);
     $item = $table->fetchRow($select);
     return $item->name;
 }
開發者ID:hoalangoc,項目名稱:ftf,代碼行數:9,代碼來源:Countries.php

示例3: fetchRowByID

 public static function fetchRowByID($group_id)
 {
     $self = new self();
     return $self->fetchRow(array("group_id" => $group_id, "active" => 1));
 }
開發者ID:nadeemshafique,項目名稱:entrada-1x,代碼行數:5,代碼來源:Group.php

示例4: buildNameById

 /**
  *
  * @param int $id
  * @return string
  */
 public static function buildNameById($id)
 {
     $obj = new self();
     $row = $obj->fetchRow($id);
     return self::buildName($row);
 }
開發者ID:fredcido,項目名稱:simuweb,代碼行數:11,代碼來源:Client.php

示例5: getParam

 public static final function getParam($key)
 {
     $objParams = new self();
     $rowParam = $objParams->fetchRow("name = '{$key}'");
     return $rowParam->active == 1 ? trim($rowParam->value) : '';
 }
開發者ID:ngukho,項目名稱:ducbui-cms,代碼行數:6,代碼來源:Parameters.php

示例6: fetchRowByDraftIDProxyID

 public static function fetchRowByDraftIDProxyID($draft_id, $proxy_id)
 {
     $self = new self();
     return $self->fetchRow(array(array("key" => "draft_id", "value" => $draft_id, "method" => "=", "mode" => "AND"), array("key" => "proxy_id", "value" => $proxy_id, "method" => "=", "mode" => "AND")));
 }
開發者ID:nadeemshafique,項目名稱:entrada-1x,代碼行數:5,代碼來源:Creator.php

示例7: fetchRowByID

 public static function fetchRowByID($id = 0)
 {
     $self = new self();
     return $self->fetchRow(array(array("key" => "draft_id", "value" => $id, "method" => "=", "mode" => "AND")));
 }
開發者ID:nadeemshafique,項目名稱:entrada-1x,代碼行數:5,代碼來源:Draft.php

示例8: get

 public static function get($eventtype_id = null)
 {
     $self = new self();
     return $self->fetchRow(array("eventtype_id" => $eventtype_id));
 }
開發者ID:nadeemshafique,項目名稱:entrada-1x,代碼行數:5,代碼來源:EventTypeOrganisation.php

示例9: get

 public static function get($instructional_method_id = null, $active = 1)
 {
     $self = new self();
     return $self->fetchRow(array(array("key" => "instructional_method_id", "value" => $instructional_method_id, "method" => "="), array("mode" => "AND", "key" => "active", "value" => $active, "method" => "=")));
 }
開發者ID:nadeemshafique,項目名稱:entrada-1x,代碼行數:5,代碼來源:MedbiqInstructionalMethod.php

示例10: fetchRowByID

 public static function fetchRowByID($questiontype_id)
 {
     $self = new self();
     return $self->fetchRow(array(array("key" => "questiontype_id", "value" => $questiontype_id, "method" => "=", "mode" => "AND")));
 }
開發者ID:nadeemshafique,項目名稱:entrada-1x,代碼行數:5,代碼來源:QuestionType.php

示例11: get

 public static function get($course_id)
 {
     $self = new self();
     return $self->fetchRow(array("course_id" => $course_id, "course_active" => 1));
 }
開發者ID:nadeemshafique,項目名稱:entrada-1x,代碼行數:5,代碼來源:Course.php

示例12: fetchRowByProxyIDCGroupID

 public static function fetchRowByProxyIDCGroupID($proxy_id, $cgroup_id)
 {
     $self = new self();
     return $self->fetchRow(array(array("key" => "proxy_id", "value" => $proxy_id, "method" => "=", "mode" => "AND"), array("key" => "cgroup_id", "value" => $cgroup_id, "method" => "=", "mode" => "AND")));
 }
開發者ID:nadeemshafique,項目名稱:entrada-1x,代碼行數:5,代碼來源:Contact.php

示例13: fetchRowByEventID

 public static function fetchRowByEventID($event_id = null)
 {
     $self = new self();
     return $self->fetchRow(array(array("key" => "event_id", "value" => $event_id, "method" => "="), array("mode" => "AND", "key" => "active", "value" => 1, "method" => "=")));
 }
開發者ID:nadeemshafique,項目名稱:entrada-1x,代碼行數:5,代碼來源:AssessmentEvent.php

示例14: fetchRowByCourseIDObjectiveID

 public static function fetchRowByCourseIDObjectiveID($course_id, $objective_id, $active = "1")
 {
     $self = new self();
     return $self->fetchRow(array("course_id" => $course_id, "objective_id" => $objective_id, "active" => $active));
 }
開發者ID:nadeemshafique,項目名稱:entrada-1x,代碼行數:5,代碼來源:Objective.php

示例15: fetchRowByID

 public static function fetchRowByID($statistic_id)
 {
     $self = new self();
     return $self->fetchRow(array("statistic_id" => $statistic_id));
 }
開發者ID:nadeemshafique,項目名稱:entrada-1x,代碼行數:5,代碼來源:Statistic.php


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