Inheritance diagram for ilMDLocation:
Collaboration diagram for ilMDLocation:Public Member Functions | |
| ilMDLocation ($a_rbac_id=0, $a_obj_id=0, $a_obj_type= '') | |
| setLocation ($a_location) | |
| getLocation () | |
| setLocationType ($a_location_type) | |
| getLocationType () | |
| save () | |
| update () | |
| delete () | |
| __getFields () | |
| read () | |
| toXML (&$writer) | |
| _getIds ($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type) | |
| ilMDLocation ($a_rbac_id=0, $a_obj_id=0, $a_obj_type= '') | |
| setLocation ($a_location) | |
| getLocation () | |
| setLocationType ($a_location_type) | |
| getLocationType () | |
| save () | |
| update () | |
| delete () | |
| __getFields () | |
| read () | |
| toXML (&$writer) | |
| _getIds ($a_rbac_id, $a_obj_id, $a_parent_id, $a_parent_type) | |
Definition at line 33 of file class.ilMDLocation.php.
| ilMDLocation::__getFields | ( | ) |
Definition at line 103 of file class.ilMDLocation.php.
References getLocation(), getLocationType(), ilMDBase::getObjId(), ilMDBase::getObjType(), ilMDBase::getParentId(), ilMDBase::getParentType(), ilMDBase::getRBACId(), and ilUtil::prepareDBString().
{
return array('rbac_id' => $this->getRBACId(),
'obj_id' => $this->getObjId(),
'obj_type' => ilUtil::prepareDBString($this->getObjType()),
'parent_type' => $this->getParentType(),
'parent_id' => $this->getParentId(),
'location' => ilUtil::prepareDBString($this->getLocation()),
'location_type' => ilUtil::prepareDBString($this->getLocationType()));
}
Here is the call graph for this function:| ilMDLocation::__getFields | ( | ) |
Definition at line 103 of file class.ilMDLocation.php.
References getLocation(), getLocationType(), ilMDBase::getObjId(), ilMDBase::getObjType(), ilMDBase::getParentId(), ilMDBase::getParentType(), ilMDBase::getRBACId(), and ilUtil::prepareDBString().
{
return array('rbac_id' => $this->getRBACId(),
'obj_id' => $this->getObjId(),
'obj_type' => ilUtil::prepareDBString($this->getObjType()),
'parent_type' => $this->getParentType(),
'parent_id' => $this->getParentId(),
'location' => ilUtil::prepareDBString($this->getLocation()),
'location_type' => ilUtil::prepareDBString($this->getLocationType()));
}
Here is the call graph for this function:| ilMDLocation::_getIds | ( | $ | a_rbac_id, | |
| $ | a_obj_id, | |||
| $ | a_parent_id, | |||
| $ | a_parent_type | |||
| ) |
Definition at line 150 of file class.ilMDLocation.php.
References $query, $res, and $row.
Referenced by ilMDTechnical::getLocationIds().
{
global $ilDB;
$query = "SELECT meta_location_id FROM il_meta_location ".
"WHERE rbac_id = '".$a_rbac_id."' ".
"AND obj_id = '".$a_obj_id."' ".
"AND parent_id = '".$a_parent_id."' ".
"AND parent_type = '".$a_parent_type."' ";
$res = $ilDB->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$ids[] = $row->meta_location_id;
}
return $ids ? $ids : array();
}
Here is the caller graph for this function:| ilMDLocation::_getIds | ( | $ | a_rbac_id, | |
| $ | a_obj_id, | |||
| $ | a_parent_id, | |||
| $ | a_parent_type | |||
| ) |
Definition at line 150 of file class.ilMDLocation.php.
References $query, $res, and $row.
{
global $ilDB;
$query = "SELECT meta_location_id FROM il_meta_location ".
"WHERE rbac_id = '".$a_rbac_id."' ".
"AND obj_id = '".$a_obj_id."' ".
"AND parent_id = '".$a_parent_id."' ".
"AND parent_type = '".$a_parent_type."'";
$res = $ilDB->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$ids[] = $row->meta_location_id;
}
return $ids ? $ids : array();
}
| ilMDLocation::delete | ( | ) |
Reimplemented from ilMDBase.
Definition at line 88 of file class.ilMDLocation.php.
References $query, and ilMDBase::getMetaId().
{
if($this->getMetaId())
{
$query = "DELETE FROM il_meta_location ".
"WHERE meta_location_id = '".$this->getMetaId()."'";
$this->db->query($query);
return true;
}
return false;
}
Here is the call graph for this function:| ilMDLocation::delete | ( | ) |
Reimplemented from ilMDBase.
Definition at line 88 of file class.ilMDLocation.php.
References $query, and ilMDBase::getMetaId().
{
if($this->getMetaId())
{
$query = "DELETE FROM il_meta_location ".
"WHERE meta_location_id = '".$this->getMetaId()."'";
$this->db->query($query);
return true;
}
return false;
}
Here is the call graph for this function:| ilMDLocation::getLocation | ( | ) |
Definition at line 47 of file class.ilMDLocation.php.
Referenced by __getFields(), and toXML().
{
return $this->location;
}
Here is the caller graph for this function:| ilMDLocation::getLocation | ( | ) |
Definition at line 47 of file class.ilMDLocation.php.
{
return $this->location;
}
| ilMDLocation::getLocationType | ( | ) |
Definition at line 55 of file class.ilMDLocation.php.
{
return $this->location_type;
}
| ilMDLocation::getLocationType | ( | ) |
Definition at line 55 of file class.ilMDLocation.php.
Referenced by __getFields(), and toXML().
{
return $this->location_type;
}
Here is the caller graph for this function:| ilMDLocation::ilMDLocation | ( | $ | a_rbac_id = 0, |
|
| $ | a_obj_id = 0, |
|||
| $ | a_obj_type = '' | |||
| ) |
Definition at line 35 of file class.ilMDLocation.php.
References ilMDBase::ilMDBase().
{
parent::ilMDBase($a_rbac_id,
$a_obj_id,
$a_obj_type);
}
Here is the call graph for this function:| ilMDLocation::ilMDLocation | ( | $ | a_rbac_id = 0, |
|
| $ | a_obj_id = 0, |
|||
| $ | a_obj_type = '' | |||
| ) |
Definition at line 35 of file class.ilMDLocation.php.
References ilMDBase::ilMDBase().
{
parent::ilMDBase($a_rbac_id,
$a_obj_id,
$a_obj_type);
}
Here is the call graph for this function:| ilMDLocation::read | ( | ) |
Definition at line 114 of file class.ilMDLocation.php.
References $query, $res, $row, ilMDBase::getMetaId(), setLocation(), setLocationType(), ilMDBase::setObjId(), ilMDBase::setObjType(), ilMDBase::setParentId(), ilMDBase::setParentType(), ilMDBase::setRBACId(), and ilUtil::stripSlashes().
{
include_once 'Services/MetaData/classes/class.ilMDLanguageItem.php';
if($this->getMetaId())
{
$query = "SELECT * FROM il_meta_location ".
"WHERE meta_location_id = '".$this->getMetaId()."'";
$res = $this->db->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$this->setRBACId($row->rbac_id);
$this->setObjId($row->obj_id);
$this->setObjType($row->obj_type);
$this->setParentId($row->parent_id);
$this->setParentType($row->parent_type);
$this->setLocation(ilUtil::stripSlashes($row->location));
$this->setLocationType(ilUtil::stripSlashes($row->location_type));
}
}
return true;
}
Here is the call graph for this function:| ilMDLocation::read | ( | ) |
Definition at line 114 of file class.ilMDLocation.php.
References $query, $res, $row, ilMDBase::getMetaId(), setLocation(), setLocationType(), ilMDBase::setObjId(), ilMDBase::setObjType(), ilMDBase::setParentId(), ilMDBase::setParentType(), ilMDBase::setRBACId(), and ilUtil::stripSlashes().
{
include_once 'Services/Migration/DBUpdate_426/classes/class.ilMDLanguageItem.php';
if($this->getMetaId())
{
$query = "SELECT * FROM il_meta_location ".
"WHERE meta_location_id = '".$this->getMetaId()."'";
$res = $this->db->query($query);
while($row = $res->fetchRow(DB_FETCHMODE_OBJECT))
{
$this->setRBACId($row->rbac_id);
$this->setObjId($row->obj_id);
$this->setObjType($row->obj_type);
$this->setParentId($row->parent_id);
$this->setParentType($row->parent_type);
$this->setLocation(ilUtil::stripSlashes($row->location));
$this->setLocationType(ilUtil::stripSlashes($row->location_type));
}
}
return true;
}
Here is the call graph for this function:| ilMDLocation::save | ( | ) |
Reimplemented from ilMDBase.
Definition at line 60 of file class.ilMDLocation.php.
References ilMDBase::getMetaId(), and ilMDBase::setMetaId().
{
if($this->db->autoExecute('il_meta_location',
$this->__getFields(),
DB_AUTOQUERY_INSERT))
{
$this->setMetaId($this->db->getLastInsertId());
return $this->getMetaId();
}
return false;
}
Here is the call graph for this function:| ilMDLocation::save | ( | ) |
Reimplemented from ilMDBase.
Definition at line 60 of file class.ilMDLocation.php.
References ilMDBase::getMetaId(), and ilMDBase::setMetaId().
{
if($this->db->autoExecute('il_meta_location',
$this->__getFields(),
DB_AUTOQUERY_INSERT))
{
$this->setMetaId($this->db->getLastInsertId());
return $this->getMetaId();
}
return false;
}
Here is the call graph for this function:| ilMDLocation::setLocation | ( | $ | a_location | ) |
Definition at line 43 of file class.ilMDLocation.php.
Referenced by read().
{
$this->location = $a_location;
}
Here is the caller graph for this function:| ilMDLocation::setLocation | ( | $ | a_location | ) |
Definition at line 43 of file class.ilMDLocation.php.
{
$this->location = $a_location;
}
| ilMDLocation::setLocationType | ( | $ | a_location_type | ) |
Definition at line 51 of file class.ilMDLocation.php.
Referenced by read().
{
$this->location_type = $a_location_type;
}
Here is the caller graph for this function:| ilMDLocation::setLocationType | ( | $ | a_location_type | ) |
Definition at line 51 of file class.ilMDLocation.php.
{
$this->location_type = $a_location_type;
}
| ilMDLocation::toXML | ( | &$ | writer | ) |
Reimplemented from ilMDBase.
Definition at line 143 of file class.ilMDLocation.php.
References getLocation(), and getLocationType().
{
$writer->xmlElement('Location',array('Type' => $this->getLocationType()),$this->getLocation());
}
Here is the call graph for this function:| ilMDLocation::toXML | ( | &$ | writer | ) |
Reimplemented from ilMDBase.
Definition at line 143 of file class.ilMDLocation.php.
References getLocation(), and getLocationType().
{
$writer->xmlElement('Location',array('Type' => $this->getLocationType()),$this->getLocation());
}
Here is the call graph for this function:| ilMDLocation::update | ( | ) |
Reimplemented from ilMDBase.
Definition at line 73 of file class.ilMDLocation.php.
References ilMDBase::getMetaId().
{
if($this->getMetaId())
{
if($this->db->autoExecute('il_meta_location',
$this->__getFields(),
DB_AUTOQUERY_UPDATE,
"meta_location_id = '".$this->getMetaId()."'"))
{
return true;
}
}
return false;
}
Here is the call graph for this function:| ilMDLocation::update | ( | ) |
Reimplemented from ilMDBase.
Definition at line 73 of file class.ilMDLocation.php.
References ilMDBase::getMetaId().
{
if($this->getMetaId())
{
if($this->db->autoExecute('il_meta_location',
$this->__getFields(),
DB_AUTOQUERY_UPDATE,
"meta_location_id = '".$this->getMetaId()."'"))
{
return true;
}
}
return false;
}
Here is the call graph for this function:
1.7.1