本文整理汇总了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;
}
示例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;
}
示例3: fetchRowByID
public static function fetchRowByID($group_id)
{
$self = new self();
return $self->fetchRow(array("group_id" => $group_id, "active" => 1));
}
示例4: buildNameById
/**
*
* @param int $id
* @return string
*/
public static function buildNameById($id)
{
$obj = new self();
$row = $obj->fetchRow($id);
return self::buildName($row);
}
示例5: getParam
public static final function getParam($key)
{
$objParams = new self();
$rowParam = $objParams->fetchRow("name = '{$key}'");
return $rowParam->active == 1 ? trim($rowParam->value) : '';
}
示例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")));
}
示例7: fetchRowByID
public static function fetchRowByID($id = 0)
{
$self = new self();
return $self->fetchRow(array(array("key" => "draft_id", "value" => $id, "method" => "=", "mode" => "AND")));
}
示例8: get
public static function get($eventtype_id = null)
{
$self = new self();
return $self->fetchRow(array("eventtype_id" => $eventtype_id));
}
示例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" => "=")));
}
示例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")));
}
示例11: get
public static function get($course_id)
{
$self = new self();
return $self->fetchRow(array("course_id" => $course_id, "course_active" => 1));
}
示例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")));
}
示例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" => "=")));
}
示例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));
}
示例15: fetchRowByID
public static function fetchRowByID($statistic_id)
{
$self = new self();
return $self->fetchRow(array("statistic_id" => $statistic_id));
}