本文整理汇总了PHP中Documents::retrieve_entity_info方法的典型用法代码示例。如果您正苦于以下问题:PHP Documents::retrieve_entity_info方法的具体用法?PHP Documents::retrieve_entity_info怎么用?PHP Documents::retrieve_entity_info使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Documents
的用法示例。
在下文中一共展示了Documents::retrieve_entity_info方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: create_note_from_webform
function create_note_from_webform($username, $sessionid, $subject, $desc)
{
global $log;
global $adb;
global $current_user;
if (!validateSession($username, $sessionid)) {
return null;
}
require_once "modules/Users/Users.php";
$seed_user = new Users();
$user_id = $seed_user->retrieve_user_id($username);
$current_user = $seed_user;
$current_user->retrieve_entity_info($user_id, 'Users');
$adb->println("Create New Document from Web Form - Starts");
require_once "modules/Documents/Documents.php";
$focus = new Documents();
if (isPermitted("Documents", "EditView") == "yes") {
$focus->column_fields['notes_title'] = $subject;
$focus->column_fields['notecontent'] = $desc;
$focus->save("Documents");
$focus->retrieve_entity_info($focus->id, "Documents");
$adb->println("Create New Document from Web Form - Ends");
if ($focus->id != '') {
return 'Document added successfully.';
} else {
return "Document creation failed. Try again";
}
} else {
return $accessDenied;
}
}