library/Haste/Dca/General.php
public static function addDateAddedToDca($strDca)
    {
        \Controller::loadDataContainer($strDca);

        $arrDca = &$GLOBALS['TL_DCA'][$strDca];

        $arrDca['config']['onload_callback']['setDateAdded'] = ['HeimrichHannot\Haste\Dca\General', 'setDateAdded', true];

        $arrDca['fields']['dateAdded'] = static::getDateAddedField();
    }
public static function addDateAddedToDca($strDca)
    {
        \Controller::loadDataContainer($strDca);

        $arrDca = &$GLOBALS['TL_DCA'][$strDca];

        $arrDca['config']['onload_callback']['setDateAdded'] = ['HeimrichHannot\Haste\Dca\General', 'setDateAdded', true];

        $arrDca['fields']['dateAdded'] = static::getDateAddedField();
    }
public static function addDateAddedToDca ( $ strDca ) { \ Controller :: loadDataContainer ( $ strDca ) ; $ arrDca = & $ GLOBALS [ 'TL_DCA' ] [ $ strDca ] ; $ arrDca [ 'config' ] [ 'onload_callback' ] [ 'setDateAdded' ] = [ 'HeimrichHannot\Haste\Dca\General' , 'setDateAdded' , true ] ; $ arrDca [ 'fields' ] [ 'dateAdded' ] = static :: getDateAddedField ( ) ; }
Adds a date added field to the dca and sets the appropriate callback

@param $strDca
Adds a date added field to the dca and sets the appropriate callback