本文整理匯總了PHP中entity::get方法的典型用法代碼示例。如果您正苦於以下問題:PHP entity::get方法的具體用法?PHP entity::get怎麽用?PHP entity::get使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類entity
的用法示例。
在下文中一共展示了entity::get方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: ucwords
$USER->acl("vat");
/* fix!
if ($USER->get("acl")->entity->read !== true || $USER->get("acl")->currency->list !== true || $USER->get("acl")->vat->list !== true) {
header('HTTP/1.1 401 Unauthorized');
exit();
}
*/
$o = new entity($data->data->id);
$o->details();
$sql = "SELECT `id`,`name` FROM `##_" . $_SESSION['space'] . "_entity_type` WHERE `deleted`=0 AND `id`>0 ORDER BY `name`;";
$DBO->query($sql);
$ot = $DBO->result("objectlist");
$sql = "SELECT `id`,`name` FROM `##_language` WHERE `deleted`=0 AND `id`>0 ORDER BY `name`;";
$DBO->query($sql);
$lang = $DBO->result("objectlist");
$sql = "SELECT `id`,`reference` FROM `##_" . $_SESSION['space'] . "_offer` WHERE `entity_id`='" . $o->get("id") . "';";
$DBO->query($sql);
$offers = $DBO->result("objectlist");
$sql = "SELECT `id`,CONCAT(`type`,' - ',DATE_FORMAT(`date`,'%Y-%m-%d'),' - ',`uid`,' - ', `reference`) `reference` FROM `##_" . $_SESSION['space'] . "_transaction` WHERE `entity_id`='" . $o->get("id") . "' AND `deleted`='0' ORDER BY `date` desc;";
$DBO->query($sql);
$transactions = $DBO->result("objectlist");
?>
<div class="title"><?php
echo ucwords($o->get("id") == -1 ? ENTITY_NEW_ENTITY : ENTITY_EDIT_ENTITY);
?>
</div>
<div class="form">
<div class="column"><input type="hidden" id="id" value="<?php
echo $o->get('id');
?>
" />