本文整理匯總了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;
}
}