本文整理汇总了PHP中Utilities::getEditingFormTitleForNodeType方法的典型用法代码示例。如果您正苦于以下问题:PHP Utilities::getEditingFormTitleForNodeType方法的具体用法?PHP Utilities::getEditingFormTitleForNodeType怎么用?PHP Utilities::getEditingFormTitleForNodeType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Utilities
的用法示例。
在下文中一共展示了Utilities::getEditingFormTitleForNodeType方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
}
$media_found = array();
$_SESSION['sess_node_editing']['media_in_db'] = serialize($media_found);
} else {
$node_to_edit = unserialize($_SESSION['sess_node_editing']['node_data']);
unset($_SESSION['sess_node_editing']['node_data']);
}
// $data = NodeEditingViewer::getEditingForm($form_action, $id_course, $id_course_instance, $sess_id_user, $node_to_edit, $flags);
// $form = $data['form'];
$form = NodeEditingViewer::getEditingForm($form_action, isset($id_course) ? $id_course : null, isset($id_course_instance) ? $id_course_instance : null, isset($sess_id_user) ? $sess_id_user : null, $node_to_edit, $flags);
/* vito, 20 feb 2009
* usa i dati presenti nella sessione per mostrare alcune informazioni relative al nodo
* che si sta editando
*/
$icon = CourseViewer::getClassNameForNodeType($node_type);
$title = Utilities::getEditingFormTitleForNodeType($node_type);
if ($status == '') {
$status = $title;
}
// vito, 20 apr 2009
$preview_additional_data = array('title' => $title, 'version' => $node_to_edit['version'], 'author' => $user_name, 'node_level' => $node_to_edit['level'], 'keywords' => $node_to_edit['title'], 'date' => $node_to_edit['creation_date']);
/*
$version = $node_to_edit['version'];
$author = $user_name;
$node_level = $node_to_edit['level'];
$keywords = $node_to_edit['title'];
$creation_date = $node_to_edit['creation_date'];
$edit_link = '';
$save_link = '';
$node_data_and_buttons_CSS_class = 'hide_node_data';
*/
示例2: translateFN
$flags = PreferenceSelector::getPreferences($id_profile, $node_to_edit['type'], EDIT_OPERATION, $ADA_ELEMENT_VIEWING_PREFERENCES);
/*
* Mostra l'editor
*/
// $data = NodeEditingViewer::getEditingForm($action, $id_course, $sess_id_course_instance, $sess_id_user, $node_to_edit, $flags);
if (!isset($id_course)) {
$id_course = null;
}
$form = NodeEditingViewer::getEditingForm($action, $id_course, $sess_id_course_instance, $sess_id_user, $node_to_edit, $flags);
$status = translateFN("Modifica del nodo");
/* vito, 20 feb 2009
* usa i dati presenti nella sessione per mostrare alcune informazioni relative al nodo
* che si sta editando
*/
$icon = CourseViewer::getClassNameForNodeType($node_to_edit['type']);
$title = Utilities::getEditingFormTitleForNodeType($node_to_edit['type']);
if ($status == '') {
$status = $title;
}
$version = $node_to_edit['version'];
$author = $user_name;
$node_level = $node_to_edit['level'];
$keywords = $node_to_edit['title'];
$creation_date = $node_to_edit['creation_date'];
$edit_link = '';
$save_link = '';
$content_dataAr_and_buttons_CSS_class = 'hide_node_data';
// vito, 20 apr 2009
$preview_additional_data = array('title' => $title, 'version' => $node_to_edit['version'], 'author' => $user_name, 'node_level' => $node_to_edit['level'], 'keywords' => $node_to_edit['title'], 'date' => $node_to_edit['creation_date']);
}
if (isset($data) && is_object($data)) {