当前位置: 首页>>代码示例>>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;未经允许,请勿转载。