ILIAS  release_4-4 Revision
ilBookingObjectGUI Class Reference

Class ilBookingObjectGUI. More...

+ Collaboration diagram for ilBookingObjectGUI:

Public Member Functions

 __construct ($a_parent_obj)
 Constructor. More...
 
 executeCommand ()
 main switch More...
 
 render ()
 Render list of booking objects. More...
 
 create ()
 Render creation form. More...
 
 edit ()
 Render edit form. More...
 
 initForm ($a_mode="create", $id=NULL)
 Build property form. More...
 
 save ()
 Create new object dataset. More...
 
 update ()
 Update object dataset. More...
 
 confirmDelete ()
 Confirm delete. More...
 
 delete ()
 Delete object. More...
 
 rsvConfirmCancelUser ()
 
 rsvCancelUser ()
 
 deliverInfo ()
 
 displayPostInfo ()
 
 deliverPostFile ()
 

Protected Attributes

 $ref_id
 
 $pool_id
 
 $pool_has_schedule
 

Detailed Description

Class ilBookingObjectGUI.

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 12 of file class.ilBookingObjectGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilBookingObjectGUI::__construct (   $a_parent_obj)

Constructor.

Parameters
object$a_parent_obj

Definition at line 22 of file class.ilBookingObjectGUI.php.

References ilObjBookingPool\TYPE_NO_SCHEDULE.

23  {
24  $this->ref_id = $a_parent_obj->ref_id;
25  $this->pool_id = $a_parent_obj->object->getId();
26  $this->pool_has_schedule =
27  ($a_parent_obj->object->getScheduleType() != ilObjBookingPool::TYPE_NO_SCHEDULE);
28  }

Member Function Documentation

◆ confirmDelete()

ilBookingObjectGUI::confirmDelete ( )

Confirm delete.

Definition at line 316 of file class.ilBookingObjectGUI.php.

References $_GET, $ilCtrl, $lng, and $tpl.

317  {
318  global $ilCtrl, $lng, $tpl, $ilTabs;
319 
320  $ilTabs->clearTargets();
321  $ilTabs->setBackTarget($lng->txt('book_back_to_list'), $ilCtrl->getLinkTarget($this, 'render'));
322 
323  include_once 'Services/Utilities/classes/class.ilConfirmationGUI.php';
324  $conf = new ilConfirmationGUI();
325  $conf->setFormAction($ilCtrl->getFormAction($this));
326  $conf->setHeaderText($lng->txt('book_confirm_delete'));
327 
328  include_once 'Modules/BookingManager/classes/class.ilBookingObject.php';
329  $type = new ilBookingObject((int)$_GET['object_id']);
330  $conf->addItem('object_id', (int)$_GET['object_id'], $type->getTitle());
331  $conf->setConfirm($lng->txt('delete'), 'delete');
332  $conf->setCancel($lng->txt('cancel'), 'render');
333 
334  $tpl->setContent($conf->getHTML());
335  }
a bookable ressource
$_GET["client_id"]
global $ilCtrl
Definition: ilias.php:18
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
global $lng
Definition: privfeed.php:40
Confirmation screen class.

◆ create()

ilBookingObjectGUI::create ( )

Render creation form.

Definition at line 77 of file class.ilBookingObjectGUI.php.

References $ilCtrl, $lng, $tpl, and initForm().

78  {
79  global $ilCtrl, $tpl, $lng, $ilTabs;
80 
81  $ilTabs->clearTargets();
82  $ilTabs->setBackTarget($lng->txt('book_back_to_list'), $ilCtrl->getLinkTarget($this, 'render'));
83 
84  $form = $this->initForm();
85  $tpl->setContent($form->getHTML());
86  }
global $ilCtrl
Definition: ilias.php:18
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
initForm($a_mode="create", $id=NULL)
Build property form.
global $lng
Definition: privfeed.php:40
+ Here is the call graph for this function:

◆ delete()

ilBookingObjectGUI::delete ( )

Delete object.

Definition at line 340 of file class.ilBookingObjectGUI.php.

References $_POST, $ilCtrl, $lng, and ilUtil\sendSuccess().

341  {
342  global $ilCtrl, $lng;
343 
344  include_once 'Modules/BookingManager/classes/class.ilBookingObject.php';
345  $obj = new ilBookingObject((int)$_POST['object_id']);
346  $obj->delete();
347 
348  ilUtil::sendSuccess($lng->txt('book_object_deleted'), true);
349  $ilCtrl->redirect($this, 'render');
350  }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
a bookable ressource
$_POST['username']
Definition: cron.php:12
global $ilCtrl
Definition: ilias.php:18
global $lng
Definition: privfeed.php:40
+ Here is the call graph for this function:

◆ deliverInfo()

ilBookingObjectGUI::deliverInfo ( )

Definition at line 403 of file class.ilBookingObjectGUI.php.

References $_GET, $file, and ilUtil\deliverFile().

404  {
405  $id = (int)$_GET["object_id"];
406  if(!$id)
407  {
408  return;
409  }
410 
411  include_once 'Modules/BookingManager/classes/class.ilBookingObject.php';
412  $obj = new ilBookingObject($id);
413  $file = $obj->getFileFullPath();
414  if($file)
415  {
416  ilUtil::deliverFile($file, $obj->getFile());
417  }
418  }
a bookable ressource
print $file
$_GET["client_id"]
static deliverFile($a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.
+ Here is the call graph for this function:

◆ deliverPostFile()

ilBookingObjectGUI::deliverPostFile ( )

Definition at line 468 of file class.ilBookingObjectGUI.php.

References $_GET, $file, $ilUser, ilUtil\deliverFile(), and ilBookingReservation\getObjectReservationForUser().

469  {
470  global $ilUser;
471 
472  $id = (int)$_GET["object_id"];
473  if(!$id)
474  {
475  return;
476  }
477 
478  include_once 'Modules/BookingManager/classes/class.ilBookingReservation.php';
479  $book_id = ilBookingReservation::getObjectReservationForUser($id, $ilUser->getId());
480  $obj = new ilBookingReservation($book_id);
481  if ($obj->getUserId() != $ilUser->getId())
482  {
483  return;
484  }
485 
486  include_once 'Modules/BookingManager/classes/class.ilBookingObject.php';
487  $obj = new ilBookingObject($id);
488  $file = $obj->getPostFileFullPath();
489  if($file)
490  {
491  ilUtil::deliverFile($file, $obj->getPostFile());
492  }
493  }
a bookable ressource
print $file
$_GET["client_id"]
static getObjectReservationForUser($a_object_id, $a_user_id)
static deliverFile($a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.
global $ilUser
Definition: imgupload.php:15
+ Here is the call graph for this function:

◆ displayPostInfo()

ilBookingObjectGUI::displayPostInfo ( )

Definition at line 420 of file class.ilBookingObjectGUI.php.

References $_GET, $ilCtrl, $ilUser, $lng, $tpl, and ilBookingReservation\getObjectReservationForUser().

421  {
422  global $tpl, $ilUser, $lng, $ilCtrl;
423 
424  $id = (int)$_GET["object_id"];
425  if(!$id)
426  {
427  return;
428  }
429 
430  include_once 'Modules/BookingManager/classes/class.ilBookingReservation.php';
431  $book_id = ilBookingReservation::getObjectReservationForUser($id, $ilUser->getId());
432  $obj = new ilBookingReservation($book_id);
433  if ($obj->getUserId() != $ilUser->getId())
434  {
435  return;
436  }
437 
438  include_once 'Modules/BookingManager/classes/class.ilBookingObject.php';
439  $obj = new ilBookingObject($id);
440  $pfile = $obj->getPostFile();
441  $ptext = $obj->getPostText();
442 
443  $mytpl = new ilTemplate('tpl.booking_reservation_post.html', true, true, 'Modules/BookingManager');
444  $mytpl->setVariable("TITLE", $lng->txt('book_post_booking_information'));
445 
446  if($ptext)
447  {
448  $mytpl->setVariable("POST_TEXT", nl2br($ptext));
449  }
450 
451  if($pfile)
452  {
453  $ilCtrl->setParameter($this, "object_id", $obj->getId());
454  $url = $ilCtrl->getLinkTarget($this, 'deliverPostFile');
455  $ilCtrl->setParameter($this, "object_id", "");
456 
457  $mytpl->setVariable("DOWNLOAD", $lng->txt('download'));
458  $mytpl->setVariable("URL_FILE", $url);
459  $mytpl->setVariable("TXT_FILE", $pfile);
460  }
461 
462  $mytpl->setVariable("TXT_SUBMIT", $lng->txt('ok'));
463  $mytpl->setVariable("URL_SUBMIT", $ilCtrl->getLinkTargetByClass('ilobjbookingpoolgui', 'render'));
464 
465  $tpl->setContent($mytpl->get());
466  }
a bookable ressource
$_GET["client_id"]
static getObjectReservationForUser($a_object_id, $a_user_id)
global $ilCtrl
Definition: ilias.php:18
special template class to simplify handling of ITX/PEAR
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
global $ilUser
Definition: imgupload.php:15
global $lng
Definition: privfeed.php:40
+ Here is the call graph for this function:

◆ edit()

ilBookingObjectGUI::edit ( )

Render edit form.

Definition at line 91 of file class.ilBookingObjectGUI.php.

References $_GET, $ilCtrl, $lng, $tpl, and initForm().

92  {
93  global $tpl, $ilCtrl, $ilTabs, $lng;
94 
95  $ilTabs->clearTargets();
96  $ilTabs->setBackTarget($lng->txt('book_back_to_list'), $ilCtrl->getLinkTarget($this, 'render'));
97 
98  $form = $this->initForm('edit', (int)$_GET['object_id']);
99  $tpl->setContent($form->getHTML());
100  }
$_GET["client_id"]
global $ilCtrl
Definition: ilias.php:18
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
initForm($a_mode="create", $id=NULL)
Build property form.
global $lng
Definition: privfeed.php:40
+ Here is the call graph for this function:

◆ executeCommand()

ilBookingObjectGUI::executeCommand ( )

main switch

Definition at line 33 of file class.ilBookingObjectGUI.php.

References $cmd, and $ilCtrl.

34  {
35  global $ilCtrl;
36 
37  $next_class = $ilCtrl->getNextClass($this);
38 
39  switch($next_class)
40  {
41  default:
42  $cmd = $ilCtrl->getCmd("render");
43  $this->$cmd();
44  break;
45  }
46  return true;
47  }
$cmd
Definition: sahs_server.php:35
global $ilCtrl
Definition: ilias.php:18

◆ initForm()

ilBookingObjectGUI::initForm (   $a_mode = "create",
  $id = NULL 
)

Build property form.

Parameters
string$a_mode
int$id
Returns
object

Definition at line 108 of file class.ilBookingObjectGUI.php.

References $file, $ilCtrl, $lng, $options, ilBookingSchedule\getList(), ilFileInputGUI\setALlowDeletion(), ilTextAreaInputGUI\setCols(), and ilFormPropertyGUI\setRequired().

Referenced by create(), edit(), save(), and update().

109  {
110  global $lng, $ilCtrl, $ilObjDataCache;
111 
112  include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
113 
114  $form_gui = new ilPropertyFormGUI();
115 
116  $title = new ilTextInputGUI($lng->txt("title"), "title");
117  $title->setRequired(true);
118  $title->setSize(40);
119  $title->setMaxLength(120);
120  $form_gui->addItem($title);
121 
122  $desc = new ilTextAreaInputGUI($lng->txt("description"), "desc");
123  $desc->setCols(70);
124  $desc->setRows(15);
125  $form_gui->addItem($desc);
126 
127  $file = new ilFileInputGUI($lng->txt("book_additional_info_file"), "file");
128  $file->setALlowDeletion(true);
129  $form_gui->addItem($file);
130 
131  $nr = new ilNumberInputGUI($lng->txt("booking_nr_of_items"), "items");
132  $nr->setRequired(true);
133  $nr->setSize(3);
134  $nr->setMaxLength(3);
135  $form_gui->addItem($nr);
136 
137  if($this->pool_has_schedule)
138  {
139  $options = array();
140  include_once 'Modules/BookingManager/classes/class.ilBookingSchedule.php';
141  foreach(ilBookingSchedule::getList($ilObjDataCache->lookupObjId($this->ref_id)) as $schedule)
142  {
143  $options[$schedule["booking_schedule_id"]] = $schedule["title"];
144  }
145  $schedule = new ilSelectInputGUI($lng->txt("book_schedule"), "schedule");
146  $schedule->setRequired(true);
147  $schedule->setOptions($options);
148  $form_gui->addItem($schedule);
149  }
150 
151  $post = new ilFormSectionHeaderGUI();
152  $post->setTitle($lng->txt("book_post_booking_information"));
153  $form_gui->addItem($post);
154 
155  $pdesc = new ilTextAreaInputGUI($lng->txt("book_post_booking_text"), "post_text");
156  $pdesc->setCols(70);
157  $pdesc->setRows(15);
158  $form_gui->addItem($pdesc);
159 
160  $pfile = new ilFileInputGUI($lng->txt("book_post_booking_file"), "post_file");
161  $pfile->setALlowDeletion(true);
162  $form_gui->addItem($pfile);
163 
164  if ($a_mode == "edit")
165  {
166  $form_gui->setTitle($lng->txt("book_edit_object"));
167 
168  $item = new ilHiddenInputGUI('object_id');
169  $item->setValue($id);
170  $form_gui->addItem($item);
171 
172  include_once 'Modules/BookingManager/classes/class.ilBookingObject.php';
173  $obj = new ilBookingObject($id);
174  $title->setValue($obj->getTitle());
175  $desc->setValue($obj->getDescription());
176  $nr->setValue($obj->getNrOfItems());
177  $pdesc->setValue($obj->getPostText());
178  $file->setValue($obj->getFile());
179  $pfile->setValue($obj->getPostFile());
180 
181  if(isset($schedule))
182  {
183  $schedule->setValue($obj->getScheduleId());
184  }
185 
186  $form_gui->addCommandButton("update", $lng->txt("save"));
187  }
188  else
189  {
190  $form_gui->setTitle($lng->txt("book_add_object"));
191  $form_gui->addCommandButton("save", $lng->txt("save"));
192  $form_gui->addCommandButton("render", $lng->txt("cancel"));
193  }
194  $form_gui->setFormAction($ilCtrl->getFormAction($this));
195 
196  return $form_gui;
197  }
a bookable ressource
print $file
This class represents a selection list property in a property form.
This class represents a property form user interface.
setALlowDeletion($a_val)
Set allow deletion.
This class represents a section header in a property form.
This class represents a file property in a property form.
global $ilCtrl
Definition: ilias.php:18
This class represents a hidden form property in a property form.
if(!is_array($argv)) $options
This class represents a number property in a property form.
This class represents a text property in a property form.
global $lng
Definition: privfeed.php:40
This class represents a text area property in a property form.
static getList($a_pool_id)
Get list of booking objects for given pool.
setRequired($a_required)
Set Required.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ render()

ilBookingObjectGUI::render ( )

Render list of booking objects.

uses ilBookingObjectsTableGUI

Definition at line 54 of file class.ilBookingObjectGUI.php.

References $ilCtrl, $lng, $tpl, and ilToolbarGUI\addButton().

Referenced by save(), and update().

55  {
56  global $tpl, $ilCtrl, $lng, $ilAccess;
57 
58  if ($ilAccess->checkAccess('write', '', $this->ref_id))
59  {
60  include_once 'Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php';
61  $bar = new ilToolbarGUI;
62  $bar->addButton($lng->txt('book_add_object'), $ilCtrl->getLinkTarget($this, 'create'));
63  $bar = $bar->getHTML();
64  }
65 
66  include_once('Services/PermanentLink/classes/class.ilPermanentLinkGUI.php');
67  $plink = new ilPermanentLinkGUI('book', $this->ref_id);
68 
69  include_once 'Modules/BookingManager/classes/class.ilBookingObjectsTableGUI.php';
70  $table = new ilBookingObjectsTableGUI($this, 'render', $this->ref_id, $this->pool_id, $this->pool_has_schedule);
71  $tpl->setContent($bar.$table->getHTML().$plink->getHTML());
72  }
Class for permanent links.
addButton($a_txt, $a_cmd, $a_target="", $a_acc_key="", $a_additional_attrs='', $a_id="", $a_class='submit')
Add button to toolbar.
global $ilCtrl
Definition: ilias.php:18
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
List booking objects (for booking type)
global $lng
Definition: privfeed.php:40
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rsvCancelUser()

ilBookingObjectGUI::rsvCancelUser ( )

Definition at line 377 of file class.ilBookingObjectGUI.php.

References $_REQUEST, $ilCtrl, $ilUser, $lng, ilBookingReservation\getObjectReservationForUser(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and ilBookingReservation\STATUS_CANCELLED.

378  {
379  global $ilCtrl, $ilUser, $lng;
380 
381  $id = (int)$_REQUEST["object_id"];
382  if(!$id)
383  {
384  return;
385  }
386 
387  include_once 'Modules/BookingManager/classes/class.ilBookingReservation.php';
388  $id = ilBookingReservation::getObjectReservationForUser($id, $ilUser->getId());
389  $obj = new ilBookingReservation($id);
390  if ($obj->getUserId() != $ilUser->getId())
391  {
392  ilUtil::sendFailure($lng->txt('permission_denied'), true);
393  $ilCtrl->redirect($this, 'render');
394  }
395 
397  $obj->update();
398 
399  ilUtil::sendSuccess($lng->txt('settings_saved'));
400  $ilCtrl->redirect($this, 'render');
401  }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static getObjectReservationForUser($a_object_id, $a_user_id)
global $ilCtrl
Definition: ilias.php:18
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
global $ilUser
Definition: imgupload.php:15
global $lng
Definition: privfeed.php:40
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
Definition: index.php:7
+ Here is the call graph for this function:

◆ rsvConfirmCancelUser()

ilBookingObjectGUI::rsvConfirmCancelUser ( )

Definition at line 352 of file class.ilBookingObjectGUI.php.

References $_GET, $ilCtrl, $lng, and $tpl.

353  {
354  global $ilCtrl, $lng, $tpl;
355 
356  $id = (int)$_GET["object_id"];
357  if(!$id)
358  {
359  return;
360  }
361 
362  // #12310
363  include_once 'Services/Utilities/classes/class.ilConfirmationGUI.php';
364  $conf = new ilConfirmationGUI();
365  $conf->setFormAction($ilCtrl->getFormAction($this, 'rsvCancelUser'));
366  $conf->setHeaderText($lng->txt('book_confirm_cancel'));
367 
368  include_once 'Modules/BookingManager/classes/class.ilBookingObject.php';
369  $type = new ilBookingObject($id);
370  $conf->addItem('object_id', $id, $type->getTitle());
371  $conf->setConfirm($lng->txt('book_set_cancel'), 'rsvCancelUser');
372  $conf->setCancel($lng->txt('cancel'), 'render');
373 
374  $tpl->setContent($conf->getHTML());
375  }
a bookable ressource
$_GET["client_id"]
global $ilCtrl
Definition: ilias.php:18
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
global $lng
Definition: privfeed.php:40
Confirmation screen class.

◆ save()

ilBookingObjectGUI::save ( )

Create new object dataset.

Definition at line 202 of file class.ilBookingObjectGUI.php.

References $file, $ilCtrl, $lng, $tpl, initForm(), render(), ilUtil\sendSuccess(), and ilBookingObject\setPoolId().

203  {
204  global $ilCtrl, $tpl, $lng, $ilTabs;
205 
206  $form = $this->initForm();
207  if($form->checkInput())
208  {
209  include_once 'Modules/BookingManager/classes/class.ilBookingObject.php';
210  $obj = new ilBookingObject;
211  $obj->setPoolId($this->pool_id);
212  $obj->setTitle($form->getInput("title"));
213  $obj->setDescription($form->getInput("desc"));
214  $obj->setNrOfItems($form->getInput("items"));
215  $obj->setPostText($form->getInput("post_text"));
216 
217  if($this->pool_has_schedule)
218  {
219  $obj->setScheduleId($form->getInput("schedule"));
220  }
221 
222  $obj->save();
223 
224  $file = $form->getItemByPostVar("file");
225  if($_FILES["file"]["tmp_name"])
226  {
227  $obj->uploadFile($_FILES["file"]);
228  }
229  else if($file->getDeletionFlag())
230  {
231  $obj->deleteFile();
232  }
233 
234  $pfile = $form->getItemByPostVar("post_file");
235  if($_FILES["post_file"]["tmp_name"])
236  {
237  $obj->uploadPostFile($_FILES["post_file"]);
238  }
239  else if($pfile->getDeletionFlag())
240  {
241  $obj->deletePostFile();
242  }
243 
244  $obj->update();
245 
246  ilUtil::sendSuccess($lng->txt("book_object_added"));
247  $this->render();
248  }
249  else
250  {
251  $ilTabs->clearTargets();
252  $ilTabs->setBackTarget($lng->txt('book_back_to_list'), $ilCtrl->getLinkTarget($this, 'render'));
253 
254  $form->setValuesByPost();
255  $tpl->setContent($form->getHTML());
256  }
257  }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
a bookable ressource
print $file
global $ilCtrl
Definition: ilias.php:18
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
initForm($a_mode="create", $id=NULL)
Build property form.
render()
Render list of booking objects.
global $lng
Definition: privfeed.php:40
setPoolId($a_pool_id)
Set booking pool id.
+ Here is the call graph for this function:

◆ update()

ilBookingObjectGUI::update ( )

Update object dataset.

Definition at line 262 of file class.ilBookingObjectGUI.php.

References $_POST, $file, $lng, $tpl, initForm(), render(), and ilUtil\sendSuccess().

263  {
264  global $tpl, $lng;
265 
266  $form = $this->initForm('edit', (int)$_POST['object_id']);
267  if($form->checkInput())
268  {
269  include_once 'Modules/BookingManager/classes/class.ilBookingObject.php';
270  $obj = new ilBookingObject((int)$_POST['object_id']);
271  $obj->setTitle($form->getInput("title"));
272  $obj->setDescription($form->getInput("desc"));
273  $obj->setNrOfItems($form->getInput("items"));
274  $obj->setPostText($form->getInput("post_text"));
275 
276  $file = $form->getItemByPostVar("file");
277  if($_FILES["file"]["tmp_name"])
278  {
279  $obj->uploadFile($_FILES["file"]);
280  }
281  else if($file->getDeletionFlag())
282  {
283  $obj->deleteFile();
284  }
285 
286  $pfile = $form->getItemByPostVar("post_file");
287  if($_FILES["post_file"]["tmp_name"])
288  {
289  $obj->uploadPostFile($_FILES["post_file"]);
290  }
291  else if($pfile->getDeletionFlag())
292  {
293  $obj->deletePostFile();
294  }
295 
296  if($this->pool_has_schedule)
297  {
298  $obj->setScheduleId($form->getInput("schedule"));
299  }
300 
301  $obj->update();
302 
303  ilUtil::sendSuccess($lng->txt("book_object_updated"));
304  $this->render();
305  }
306  else
307  {
308  $form->setValuesByPost();
309  $tpl->setContent($form->getHTML());
310  }
311  }
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
a bookable ressource
print $file
$_POST['username']
Definition: cron.php:12
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl
initForm($a_mode="create", $id=NULL)
Build property form.
render()
Render list of booking objects.
global $lng
Definition: privfeed.php:40
+ Here is the call graph for this function:

Field Documentation

◆ $pool_has_schedule

ilBookingObjectGUI::$pool_has_schedule
protected

Definition at line 16 of file class.ilBookingObjectGUI.php.

◆ $pool_id

ilBookingObjectGUI::$pool_id
protected

Definition at line 15 of file class.ilBookingObjectGUI.php.

◆ $ref_id

ilBookingObjectGUI::$ref_id
protected

Definition at line 14 of file class.ilBookingObjectGUI.php.


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