public static loadDataContainer ( string $strTable, boolean $blnNoCache = false ) | ||
$strTable | string | The table name |
$blnNoCache | boolean | If true, the cache will be bypassed |
public static function loadDataContainer($strTable, $blnNoCache = false)
{
$loader = new \DcaLoader($strTable);
$loader->load($blnNoCache);
}
/** * @param DataContainer $objDC * @return DataContainer */ public function translateDCObject(DataContainer $objDC) { // Get table $strTable = $objDC->current()->getTable(); // Load current data container Controller::loadDataContainer($strTable); if (count($GLOBALS['TL_DCA'][$strTable]['fields']) > 0) { foreach ($GLOBALS['TL_DCA'][$strTable]['fields'] as $field => $arrValues) { $objDC->{$field} = $this->translateField($arrValues['inputType'], $objDC->{$field}); } } return $objDC; }