13 return ellipsis(stripHTML(
$helpPage->content), 100,
true);
20 $constraint =
"WHERE identifier != '{$helpPage->identifier}'";
22 $helpPages =
$helpBook->Pages(
"$constraint ORDER BY sort_order");
28 foreach($helpPages as $hp)
31 $options[$hp->help_page_id] = $hp->title;
44 return formatItems($children,
"<a style='display: inline' href='help_page_form?help_book_id={help_book_id}&help_page_id={help_page_id}'>{title}</a>",
", ");
70 $table->column(
"Help Page",
"<a href='help_page_form?help_page_id={help_page_id}&help_book_id={help_book_id}'>{title}</a>")
71 ->column(
"Identifier",
"{identifier}",
false,
"width: 25%")
73 ->column(
"Subpages", array(
OnlineHelpHelper, formatSubPages),
false,
"width: 20%")
74 ->column(
"Public",
"{public:Yes/No}",
false,
"text-align: center; width: 15%")
79 $table->enableDragReorder(
"/action/online_help/reorder_help_pages?help_book_id=$help_book_id");
80 $table->dragText =
"<span style='font-size: 10px'>Click and drag to change the order of the help pages</span>";
static buildPageTable($pages, $help_book_id)
static formatHelpPageContent($helpPage)
static buildRootPageTable($pages, $help_book_id)
static formatSubpages($helpPage)
static formatParentOptions($helpBook, $helpPage)