本文整理汇总了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);
}
示例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>
示例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 -->
示例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);
}