当前位置: 首页>>代码示例>>PHP>>正文


PHP Data::init方法代码示例

本文整理汇总了PHP中Data::init方法的典型用法代码示例。如果您正苦于以下问题:PHP Data::init方法的具体用法?PHP Data::init怎么用?PHP Data::init使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Data的用法示例。


在下文中一共展示了Data::init方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct()
 {
     $options = array('key' => 'id', 'table' => 'babel_reply', 'columns' => array('id' => 'rpl_id', 'content' => 'rpl_content', 'adId' => 'rpl_tpc_id', 'userNick' => 'rpl_post_nick', 'userId' => 'rpl_post_usr_id'));
     parent::init($options);
 }
开发者ID:QiTai,项目名称:MiniChaoge,代码行数:5,代码来源:Kijiji.php

示例2:

<!DOCTYPE HTML>
<html>
	<head>
		<?php 
require 'constants.php';
?>
		<?php 
require 'functions.php';
?>
		<?php 
require 'locale/languages.php';
?>

		<?php 
//get data
$data = Data::init($fields, $languages);
//load language
$desc = Language::init($data);
$weaponNames = Language::translateWeaponNames($weaponNames, $desc);
$skills = Language::translateSkills($skills, $desc);
$enchants = Language::translateEnchants($enchants, $desc);
$etchings = Language::translateEtchings($etchings, $desc);
$necklaceBonuses = Language::translateNumericBonuses($necklaceBonuses, $desc, 'noNecklaceBonus');
$earringBonuses = Language::translateNumericBonuses($earringBonuses, $desc, 'noEarringBonus');
?>

		<meta charset="utf-8" />
		<title><?php 
e($desc->title);
?>
</title>
开发者ID:Bochozkar,项目名称:tera-heal-calc,代码行数:31,代码来源:index.php

示例3: Data

<!-- List Clients -->
							<div id="list-clients-box" class="pure-u-1-2">
								<h1>Kunden</h1>
								<div class="inner">
									<ul id="selectable-clients" class="selectable">
										<?php 
$myData = new Data();
$myData->init();
$client_array = $myData->read_clients();
$i = 0;
while ($i < count($client_array)) {
    if ($client_array[$i]->firma) {
        $listLabel = $client_array[$i]->firma;
    } else {
        $listLabel = $client_array[$i]->nachname . ", " . $client_array[$i]->vorname;
    }
    echo "<li class='hvr-shadow-radial'\n\t\t\t\t\t\t\t\t\t\t\t\tdata-id='" . $client_array[$i]->id . "' " . "data-kundennummer='" . $client_array[$i]->kundennummer . "' " . "data-anrede='" . $client_array[$i]->anrede . "' " . "data-firma='" . $client_array[$i]->firma . "' " . "data-zusatz='" . $client_array[$i]->zusatz . "' " . "data-nachname='" . $client_array[$i]->nachname . "' " . "data-vorname='" . $client_array[$i]->vorname . "' " . "data-strasse='" . $client_array[$i]->strasse . "' " . "data-plz='" . $client_array[$i]->plz . "' " . "data-ort='" . $client_array[$i]->ort . "' " . "data-land='" . $client_array[$i]->land . "' " . "data-email='" . $client_array[$i]->email . "' " . "data-mwst_type='" . $client_array[$i]->mwst_type . "' " . "data-freitext='" . $client_array[$i]->freitext . "' " . ">" . $listLabel . "<span class='view_kundennummer'>" . $client_array[$i]->kundennummer . "<span><span class='invisible client-id'>" . $client_array[$i]->id . "</span></li>";
    $i++;
}
?>
									</ul>
									<a class="pure-button pure-button-primary" href="#client-add-modal" id="client_new">Neuen Kunden anlegen</a>
									<a class="pure-button pure-button-primary" href="#client-change-modal" id="client_change">Kunden ändern</a>
									<a class="button-warning" href="#" id="client_delete">Kunden löschen</a>
								</div>
							</div>
<!-- List Clients END -->
开发者ID:medianetic,项目名称:faktura,代码行数:27,代码来源:list_clients.php

示例4: __construct

 public function __construct()
 {
     $option = array("key" => "groupId1", "key2" => "groupId2", "table" => "group_has_group", "columns" => array("groupId1" => "group_id1", "groupId2" => "group_id2"));
     parent::init($option);
 }
开发者ID:a4501150,项目名称:FDUGroup,代码行数:5,代码来源:FriendsGroup.php


注:本文中的Data::init方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。