ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilStudyProgrammeTypeTranslation Class Reference

Class ilStudyProgrammeTypeTranslation This class represents a translation for a given ilStudyProgrammeType object and language. More...

+ Inheritance diagram for ilStudyProgrammeTypeTranslation:
+ Collaboration diagram for ilStudyProgrammeTypeTranslation:

Public Member Functions

 __construct ($primary_key=0, $a_lang_code='')
 
 getId ()
 
 setId ($id)
 
 getPrgTypeId ()
 
 setPrgTypeId ($prg_type_id)
 
 getLang ()
 
 setLang ($lang)
 
 getMember ()
 
 setMember ($member)
 
 getValue ()
 
 setValue ($value)
 
- Public Member Functions inherited from ActiveRecord
 getArConnector ()
 
 getArFieldList ()
 
 getConnectorContainerName ()
 
 setConnectorContainerName ($connector_container_name)
 
 getPrimaryFieldValue ()
 
 setPrimaryFieldValue ($value)
 
 __construct ($primary_key=0, arConnector $connector=null)
 
 storeObjectToCache ()
 
 __getConvertedDateFieldsAsArray ($format=null)
 
 __asCsv ($separator=';', $header=false)
 
 __asArray ()
 
 __asStdClass ()
 
 __asSerializedObject ()
 
 buildFromArray (array $array)
 
 fixDateField ($field_name, $value)
 
 sleep ($field_name)
 
 wakeUp ($field_name, $field_value)
 
 getArrayForDb ()
 
 getArrayForConnector ()
 
 installConnector ()
 
 store ()
 
 save ()
 
 create ()
 
 copy ($new_id=0)
 
 afterObjectLoad ()
 
 read ()
 
 update ()
 
 delete ()
 
 __call ($name, $arguments)
 

Static Public Member Functions

static returnDbTableName ()
 
static deleteAllTranslations ($type_id)
 Removes all translations to a specific StudyProgramme-Type. More...
 
- Static Public Member Functions inherited from ActiveRecord
static returnDbTableName ()
 
static installDB ()
 
static renameDBField ($old_name, $new_name)
 
static tableExists ()
 
static fieldExists ($field_name)
 
static removeDBField ($field_name)
 
static updateDB ()
 
static resetDB ()
 
static truncateDB ()
 
static flushDB ()
 
static preloadObjects ()
 
static additionalParams (array $additional_params)
 
static findOrFail ($primary_key, array $add_constructor_args=array())
 Tries to find the object and throws an Exception if object is not found, instead of returning null. More...
 
static findOrGetInstance ($primary_key, array $add_constructor_args=array())
 
static where ($where, $operator=null)
 
static innerjoinAR (ActiveRecord $ar, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false)
 
static innerjoin ($tablename, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false)
 
static leftjoin ($tablename, $on_this, $on_external, $fields=array(' *'), $operator='=', $both_external=false)
 
static orderBy ($orderBy, $orderDirection='ASC')
 
static dateFormat ($date_format='d.m.Y - H:i:s')
 
static limit ($start, $end)
 
static affectedRows ()
 
static count ()
 
static get ()
 
static debug ()
 
static first ()
 
static getCollection ()
 
static last ()
 
static getFirstFromLastQuery ()
 
static connector (arConnector $connector)
 
static raw ($set_raw=true)
 
static getArray ($key=null, $values=null)
 
static _toCamelCase ($str, $capitalise_first_char=false)
 

Protected Attributes

 $id
 
 $prg_type_id
 
 $lang = ''
 
 $member
 
 $value
 
 $log
 
- Protected Attributes inherited from ActiveRecord
 $ar_safe_read = true
 
 $connector_container_name = ''
 

Additional Inherited Members

- Data Fields inherited from ActiveRecord
const ACTIVE_RECORD_VERSION = '2.0.7'
 
- Protected Member Functions inherited from ActiveRecord
 serializeToCSV ($field)
 This method is called for every field of your instance if you use __asCsv. More...
 
 installDatabase ()
 
- Static Protected Member Functions inherited from ActiveRecord
static getCalledClass ()
 
static fromCamelCase ($str)
 

Detailed Description

Class ilStudyProgrammeTypeTranslation This class represents a translation for a given ilStudyProgrammeType object and language.

Author
: Michael Herren mh@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

Definition at line 9 of file class.ilStudyProgrammeTypeTranslation.php.

Constructor & Destructor Documentation

◆ __construct()

ilStudyProgrammeTypeTranslation::__construct (   $primary_key = 0,
  $a_lang_code = '' 
)

Definition at line 79 of file class.ilStudyProgrammeTypeTranslation.php.

References $DIC, and $ilLog.

80  {
81  global $DIC;
82  $ilLog = $DIC['ilLog'];
83  $this->log = $ilLog;
84 
85  parent::__construct($primary_key);
86  }
global $DIC
Definition: saml.php:7

Member Function Documentation

◆ deleteAllTranslations()

static ilStudyProgrammeTypeTranslation::deleteAllTranslations (   $type_id)
static

Removes all translations to a specific StudyProgramme-Type.

Parameters
$type_id| Id of the studyProgrammeType

Definition at line 93 of file class.ilStudyProgrammeTypeTranslation.php.

References array.

Referenced by ilStudyProgrammeType\getAllTypesArray().

94  {
95  $translations = self::where(array('prg_type_id'=>$type_id))->get();
96  foreach ($translations as $translation) {
97  $translation->delete();
98  }
99  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ getId()

ilStudyProgrammeTypeTranslation::getId ( )
Returns
int

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

References $id.

◆ getLang()

ilStudyProgrammeTypeTranslation::getLang ( )
Returns
string

Definition at line 140 of file class.ilStudyProgrammeTypeTranslation.php.

References $lang.

◆ getMember()

ilStudyProgrammeTypeTranslation::getMember ( )
Returns
string

Definition at line 158 of file class.ilStudyProgrammeTypeTranslation.php.

References $member.

◆ getPrgTypeId()

ilStudyProgrammeTypeTranslation::getPrgTypeId ( )
Returns
int

Definition at line 122 of file class.ilStudyProgrammeTypeTranslation.php.

References $prg_type_id.

◆ getValue()

ilStudyProgrammeTypeTranslation::getValue ( )
Returns
string

Definition at line 176 of file class.ilStudyProgrammeTypeTranslation.php.

References $value.

◆ returnDbTableName()

static ilStudyProgrammeTypeTranslation::returnDbTableName ( )
static
Returns
string Return the Name of your Database Table
Deprecated:

Definition at line 74 of file class.ilStudyProgrammeTypeTranslation.php.

75  {
76  return "prg_translations";
77  }

◆ setId()

ilStudyProgrammeTypeTranslation::setId (   $id)
Parameters
int$id

Definition at line 113 of file class.ilStudyProgrammeTypeTranslation.php.

References $id.

◆ setLang()

ilStudyProgrammeTypeTranslation::setLang (   $lang)
Parameters
string$lang

Definition at line 149 of file class.ilStudyProgrammeTypeTranslation.php.

References $lang.

◆ setMember()

ilStudyProgrammeTypeTranslation::setMember (   $member)
Parameters
string$member

Definition at line 167 of file class.ilStudyProgrammeTypeTranslation.php.

References $member.

168  {
169  $this->member = $member;
170  }

◆ setPrgTypeId()

ilStudyProgrammeTypeTranslation::setPrgTypeId (   $prg_type_id)
Parameters
int$prg_type_id

Definition at line 131 of file class.ilStudyProgrammeTypeTranslation.php.

References $prg_type_id.

132  {
133  $this->prg_type_id = $prg_type_id;
134  }

◆ setValue()

ilStudyProgrammeTypeTranslation::setValue (   $value)
Parameters
string$value

Definition at line 185 of file class.ilStudyProgrammeTypeTranslation.php.

References $value.

Field Documentation

◆ $id

ilStudyProgrammeTypeTranslation::$id
protected

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

Referenced by getId(), and setId().

◆ $lang

ilStudyProgrammeTypeTranslation::$lang = ''
protected

Definition at line 42 of file class.ilStudyProgrammeTypeTranslation.php.

Referenced by getLang(), and setLang().

◆ $log

ilStudyProgrammeTypeTranslation::$log
protected

Definition at line 67 of file class.ilStudyProgrammeTypeTranslation.php.

◆ $member

ilStudyProgrammeTypeTranslation::$member
protected

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

Referenced by getMember(), and setMember().

◆ $prg_type_id

ilStudyProgrammeTypeTranslation::$prg_type_id
protected

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

Referenced by getPrgTypeId(), and setPrgTypeId().

◆ $value

ilStudyProgrammeTypeTranslation::$value
protected

Definition at line 62 of file class.ilStudyProgrammeTypeTranslation.php.

Referenced by getValue(), and setValue().


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