本文整理汇总了PHP中entity::details方法的典型用法代码示例。如果您正苦于以下问题:PHP entity::details方法的具体用法?PHP entity::details怎么用?PHP entity::details使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类entity
的用法示例。
在下文中一共展示了entity::details方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ucwords
error_reporting(E_ALL);
ini_set('display_errors', '1');
// 0 - disabled; 1 - enabled
//
$USER = new user($_SESSION["auth::id"]);
$USER->acl("entity");
$USER->acl("currency");
$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);