/** * Get datatype_id * * @return int */ public function getDatatypeId() { if ($this->isStandardField()) { return ilDataCollectionStandardField::_getDatatypeForId($this->getId()); } return $this->datatypeId; }