31 $this->lng = (
$lng !=
null)
35 $this->lng->loadLanguageModule(
"wfld");
48 $sort_options = ($wsp_type ==
"wfld")
49 ? [self::SORT_DERIVED => $this->lng->txt(
"wfld_derive")]
51 if (in_array($wsp_type, [
"wfld",
"wsrt"])) {
58 if (isset($sort_options[self::SORT_DERIVED])) {
62 if (isset($sort_options[$selected])) {
63 $sort_options[$selected] =
"<strong>" . $sort_options[$selected] .
"</strong>";
An exception for terminatinating execution or to throw for unit testing.
static sortArray( $array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
sortArray
getOptionsByType($wsp_type, $selected, $parent_effective)
Get options by type.
const SORT_ALPHABETICAL_DESC
sortNodes($nodes, $sorting)
Sort nodes.
__construct(ilLanguage $lng=null)
Constructor.
getLabel(int $option)
Get label.
const SORT_ALPHABETICAL_ASC