ILIAS  release_7 Revision v7.30-3-g800a261c036
ilRepositoryObjectSearchBlockGUI Class Reference
+ Inheritance diagram for ilRepositoryObjectSearchBlockGUI:
+ Collaboration diagram for ilRepositoryObjectSearchBlockGUI:

Public Member Functions

 __construct ($a_title)
 Constructor @global type $ilCtrl @global type $lng. More...
 
 getBlockType ()
 
Returns
string
More...
 
 executeCommand ()
 execute command More...
 
 getHTML ()
 Get bloch HTML code. More...
 
 fillDataSection ()
 Fill data section. More...
 
- Public Member Functions inherited from ilBlockGUI
 getBlockType ()
 
 __construct ()
 Constructor. More...
 
 setData ($a_data)
 Set Data. More...
 
 getData ()
 Get Data. More...
 
 setPresentation (int $type)
 Set presentation. More...
 
 getPresentation ()
 Get presentation type. More...
 
 setBlockId ($a_block_id=0)
 Set Block Id. More...
 
 getBlockId ()
 Get Block Id. More...
 
 setGuiObject (&$a_gui_object)
 Set GuiObject. More...
 
 getGuiObject ()
 Get GuiObject. More...
 
 setTitle ($a_title)
 Set Title. More...
 
 getTitle ()
 Get Title. More...
 
 setOffset ($a_offset)
 Set Offset. More...
 
 getOffset ()
 Get Offset. More...
 
 correctOffset ()
 
 setLimit ($a_limit)
 Set Limit. More...
 
 getLimit ()
 Get Limit. More...
 
 setEnableEdit ($a_enableedit)
 Set EnableEdit. More...
 
 getEnableEdit ()
 Get EnableEdit. More...
 
 setRepositoryMode ($a_repositorymode)
 Set RepositoryMode. More...
 
 getRepositoryMode ()
 Get RepositoryMode. More...
 
 setSubtitle ($a_subtitle)
 Set Subtitle. More...
 
 getSubtitle ()
 Get Subtitle. More...
 
 setRefId ($a_refid)
 Set Ref Id (only used if isRepositoryObject() is true). More...
 
 getRefId ()
 Get Ref Id (only used if isRepositoryObject() is true). More...
 
 setAdminCommands (bool $a_admincommands)
 Set Administration Commmands. More...
 
 getAdminCommands ()
 Get Administration Commmands. More...
 
 setEnableNumInfo ($a_enablenuminfo)
 Set Enable Item Number Info. More...
 
 getEnableNumInfo ()
 Get Enable Item Number Info. More...
 
 setProperties ($a_properties)
 This function is supposed to be used for block type specific properties, that should be inherited through ilColumnGUI->setBlockProperties. More...
 
 getProperty ($a_property)
 
 setProperty ($a_property, $a_value)
 
 setRowTemplate ($a_rowtemplatename, $a_rowtemplatedir="")
 Set Row Template Name. More...
 
 getNavParameter ()
 
 getConfigParameter ()
 
 getMoveParameter ()
 
 getRowTemplateName ()
 Get Row Template Name. More...
 
 getRowTemplateDir ()
 Get Row Template Directory. More...
 
 addBlockCommand (string $a_href, string $a_text, string $a_onclick="")
 Add Block Command. More...
 
 getBlockCommands ()
 Get Block commands. More...
 
 getHTML ()
 Get HTML. More...
 
 fillHeaderCommands ()
 Fill header commands block. More...
 
 fillHeaderTitleBlock ()
 Fill header title block (title and. More...
 
 setDataSection ($a_content)
 Call this from overwritten fillDataSection(), if standard row based data is not used. More...
 
 fillDataSection ()
 Standard implementation for row based data. More...
 
 fillRow ($a_set)
 
 fillFooter ()
 
 fillPreviousNext ()
 Fill previous/next row. More...
 
 setPreviousNextLinks ()
 Get previous/next linkbar. More...
 
 getAsynch ()
 Use this for final get before sending asynchronous output (ajax) per echo to output. More...
 
 getPaginationViewControl ()
 Fill previous/next row. More...
 
 getHTMLNew ()
 Get HTML. More...
 

Static Public Member Functions

static getScreenMode ()
 Get Screen Mode for current command. More...
 
static getScreenMode ()
 Get Screen Mode for current command. More...
 

Static Public Attributes

static $block_type = "objectsearch"
 
static $st_data
 

Protected Member Functions

 isRepositoryObject ()
 Returns whether block has a corresponding repository object.
Returns
bool
More...
 
 getLegacyContent ()
 Get legacy content.
Returns
string
More...
 
- Protected Member Functions inherited from ilBlockGUI
 isRepositoryObject ()
 Returns whether block has a corresponding repository object. More...
 
 initCommands ()
 Init commands. More...
 
 fillRowColor ($a_placeholder="CSS_ROW")
 
 preloadData (array $data)
 Can be overwritten in subclasses. More...
 
 getLegacyContent ()
 Get legacy content. More...
 
 getViewControls ()
 Get view controls. More...
 
 getListItemForData (array $data)
 Get list item for data array. More...
 
 handleNavigation ()
 Handle navigation. More...
 
 loadData ()
 Load data for current page. More...
 
 getListItemGroups ()
 Get items. More...
 
 addRepoCommands ()
 Add repo commands. More...
 
 getNoItemFoundContent ()
 No item entry. More...
 

Protected Attributes

 $new_rendering = true
 
- Protected Attributes inherited from ilBlockGUI
 $ui
 
 $data = array()
 
 $enablenuminfo = true
 
 $footer_links = array()
 
 $block_id = 0
 
 $allow_moving = true
 
 $move = array("left" => false, "right" => false, "up" => false, "down" => false)
 
 $block_commands = array()
 
 $max_count = false
 
 $close_command = false
 
 $image = false
 
 $property = false
 
 $nav_value = ""
 
 $css_row = ""
 
 $title = ""
 
 $admincommands = false
 
 $dropdown
 
 $tpl
 
 $main_tpl
 
 $user
 
 $ctrl
 
 $access
 
 $lng
 
 $obj_def
 
 $presentation
 
 $new_rendering = false
 

Additional Inherited Members

- Data Fields inherited from ilBlockGUI
const PRES_MAIN_LEG = 0
 
const PRES_SEC_LEG = 1
 
const PRES_SEC_LIST = 2
 
const PRES_MAIN_LIST = 3
 

Detailed Description

Definition at line 17 of file class.ilRepositoryObjectSearchBlockGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilRepositoryObjectSearchBlockGUI::__construct (   $a_title)

Constructor @global type $ilCtrl @global type $lng.

Definition at line 28 of file class.ilRepositoryObjectSearchBlockGUI.php.

29 {
31
32 $this->setEnableNumInfo(false);
33
34 $this->setTitle($a_title);
35 $this->allow_moving = false;
36 }
setTitle($a_title)
Set Title.
setEnableNumInfo($a_enablenuminfo)
Set Enable Item Number Info.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct(), ilBlockGUI\setEnableNumInfo(), and ilBlockGUI\setTitle().

+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilRepositoryObjectSearchBlockGUI::executeCommand ( )

execute command

Definition at line 65 of file class.ilRepositoryObjectSearchBlockGUI.php.

66 {
67 $ilCtrl = $this->ctrl;
68
69 $next_class = $ilCtrl->getNextClass();
70 $cmd = $ilCtrl->getCmd("getHTML");
71
72 switch ($next_class) {
73 default:
74 return $this->$cmd();
75 }
76 }

References ilBlockGUI\$ctrl.

◆ fillDataSection()

ilRepositoryObjectSearchBlockGUI::fillDataSection ( )

Fill data section.

Reimplemented from ilBlockGUI.

Definition at line 89 of file class.ilRepositoryObjectSearchBlockGUI.php.

90 {
91 $this->setDataSection($this->getLegacyContent());
92 }
setDataSection($a_content)
Call this from overwritten fillDataSection(), if standard row based data is not used.

References getLegacyContent(), and ilBlockGUI\setDataSection().

+ Here is the call graph for this function:

◆ getBlockType()

ilRepositoryObjectSearchBlockGUI::getBlockType ( )

Returns
string

Reimplemented from ilBlockGUI.

Definition at line 41 of file class.ilRepositoryObjectSearchBlockGUI.php.

References $block_type.

◆ getHTML()

ilRepositoryObjectSearchBlockGUI::getHTML ( )

Get bloch HTML code.

Reimplemented from ilBlockGUI.

Definition at line 81 of file class.ilRepositoryObjectSearchBlockGUI.php.

82 {
83 return parent::getHTML();
84 }

◆ getLegacyContent()

ilRepositoryObjectSearchBlockGUI::getLegacyContent ( )
protected

Get legacy content.

Returns
string

Reimplemented from ilBlockGUI.

Definition at line 104 of file class.ilRepositoryObjectSearchBlockGUI.php.

104 : string
105 {
106 $ilCtrl = $this->ctrl;
108
109 $tpl = new ilTemplate("tpl.search_search_block.html", true, true, 'Services/Search');
110
111 $lng->loadLanguageModule('search');
112 $tpl->setVariable("TXT_SEARCH_INPUT_LABEL", $lng->txt('search_field'));
113 $tpl->setVariable("TXT_PERFORM", $lng->txt('btn_search'));
114 $tpl->setVariable("FORMACTION", $ilCtrl->getFormActionByClass('ilrepositoryobjectsearchgui', 'performSearch'));
115 $tpl->setVariable("SEARCH_TERM", ilUtil::prepareFormOutput(ilUtil::stripSlashes($_POST["search_term"])));
116
117 return $tpl->get();
118 }
$_POST["username"]
special template class to simplify handling of ITX/PEAR
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public

References $_POST, ilBlockGUI\$ctrl, ilBlockGUI\$lng, ilBlockGUI\$tpl, ilUtil\prepareFormOutput(), and ilUtil\stripSlashes().

Referenced by fillDataSection().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getScreenMode()

static ilRepositoryObjectSearchBlockGUI::getScreenMode ( )
static

Get Screen Mode for current command.

Reimplemented from ilBlockGUI.

Definition at line 57 of file class.ilRepositoryObjectSearchBlockGUI.php.

58 {
59 return IL_SCREEN_SIDE;
60 }
const IL_SCREEN_SIDE

References IL_SCREEN_SIDE.

◆ isRepositoryObject()

ilRepositoryObjectSearchBlockGUI::isRepositoryObject ( )
protected

Returns whether block has a corresponding repository object.

Returns
bool

Reimplemented from ilBlockGUI.

Definition at line 49 of file class.ilRepositoryObjectSearchBlockGUI.php.

49 : bool
50 {
51 return false;
52 }

Field Documentation

◆ $block_type

ilRepositoryObjectSearchBlockGUI::$block_type = "objectsearch"
static

Definition at line 19 of file class.ilRepositoryObjectSearchBlockGUI.php.

Referenced by getBlockType().

◆ $new_rendering

ilRepositoryObjectSearchBlockGUI::$new_rendering = true
protected

Definition at line 98 of file class.ilRepositoryObjectSearchBlockGUI.php.

◆ $st_data

ilRepositoryObjectSearchBlockGUI::$st_data
static

Definition at line 20 of file class.ilRepositoryObjectSearchBlockGUI.php.


The documentation for this class was generated from the following file: