ILIAS  release_8 Revision v8.24
ilWebLinkDraftParameter Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilWebLinkDraftParameter:
+ Collaboration diagram for ilWebLinkDraftParameter:

Public Member Functions

 replaces (?ilWebLinkParameter $old_parameter)
 
 getOldParameter ()
 
 validate ()
 TODO: Modernizing the forms to input parameters will make this additional layer of input validation obsolete. More...
 
- Public Member Functions inherited from ilWebLinkBaseParameter
 __construct (int $value, string $name)
 
 getValue ()
 
 getName ()
 

Data Fields

const LINKS_ERR_NO_NAME = 'links_no_name_given'
 TODO: This can be removed when validate is. More...
 
const LINKS_ERR_NO_VALUE = 'links_no_value_given'
 
const LINKS_ERR_NO_NAME_VALUE = 'links_no_name_no_value'
 
- Data Fields inherited from ilWebLinkBaseParameter
const UNDEFINED_NAME = 'undefined'
 
const USER_ID_NAME = 'user_id'
 
const SESSION_ID_NAME = 'session_id'
 
const LOGIN_NAME = 'login'
 
const MATRICULATION_NAME = 'matriculation'
 
const VALUES
 TODO Once the GUI is updated, undefined can be dropped. More...
 
const VALUES_TEXT
 Keys of the language variables to the possible values, e.g. More...
 

Protected Attributes

ilWebLinkParameter $old_parameter = null
 
- Protected Attributes inherited from ilWebLinkBaseParameter
int $value
 
string $name
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Draft class for creating and updating a parameter attached to Web Link items

Author
Tim Schmitz schmi.nosp@m.tz@l.nosp@m.eifos.nosp@m..de

Definition at line 25 of file class.ilWebLinkDraftParameter.php.

Member Function Documentation

◆ getOldParameter()

ilWebLinkDraftParameter::getOldParameter ( )

Definition at line 43 of file class.ilWebLinkDraftParameter.php.

44 {
46 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References $old_parameter.

◆ replaces()

ilWebLinkDraftParameter::replaces ( ?ilWebLinkParameter  $old_parameter)

Definition at line 37 of file class.ilWebLinkDraftParameter.php.

38 {
39 $this->old_parameter = $old_parameter;
40 return $this;
41 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References $old_parameter.

◆ validate()

ilWebLinkDraftParameter::validate ( )

TODO: Modernizing the forms to input parameters will make this additional layer of input validation obsolete.

Definition at line 52 of file class.ilWebLinkDraftParameter.php.

52 : string
53 {
54 if (!strlen($this->getName()) && !$this->getValue()) {
56 }
57 if (!strlen($this->getName())) {
59 }
60 if (!$this->getValue()) {
62 }
63 return '';
64 }
const LINKS_ERR_NO_NAME
TODO: This can be removed when validate is.

References ilWebLinkBaseParameter\getName(), ilWebLinkBaseParameter\getValue(), LINKS_ERR_NO_NAME, LINKS_ERR_NO_NAME_VALUE, and LINKS_ERR_NO_VALUE.

+ Here is the call graph for this function:

Field Documentation

◆ $old_parameter

ilWebLinkParameter ilWebLinkDraftParameter::$old_parameter = null
protected

Definition at line 35 of file class.ilWebLinkDraftParameter.php.

Referenced by getOldParameter(), and replaces().

◆ LINKS_ERR_NO_NAME

const ilWebLinkDraftParameter::LINKS_ERR_NO_NAME = 'links_no_name_given'

TODO: This can be removed when validate is.

Definition at line 30 of file class.ilWebLinkDraftParameter.php.

Referenced by validate().

◆ LINKS_ERR_NO_NAME_VALUE

const ilWebLinkDraftParameter::LINKS_ERR_NO_NAME_VALUE = 'links_no_name_no_value'

Definition at line 32 of file class.ilWebLinkDraftParameter.php.

Referenced by validate().

◆ LINKS_ERR_NO_VALUE

const ilWebLinkDraftParameter::LINKS_ERR_NO_VALUE = 'links_no_value_given'

Definition at line 31 of file class.ilWebLinkDraftParameter.php.

Referenced by validate().


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