library/Haste/Dca/General.php
public static function setDateAdded(\DataContainer $objDc)
    {
        if ($objDc === null || !$objDc->id || $objDc->activeRecord->dateAdded > 0) {
            return false;
        }

        \Database::getInstance()->prepare("UPDATE $objDc->table SET dateAdded=? WHERE id=? AND dateAdded = 0")->execute(time(), $objDc->id);
    }
public static function setDateAdded(\DataContainer $objDc)
    {
        if ($objDc === null || !$objDc->id || $objDc->activeRecord->dateAdded > 0) {
            return false;
        }

        \Database::getInstance()->prepare("UPDATE $objDc->table SET dateAdded=? WHERE id=? AND dateAdded = 0")->execute(time(), $objDc->id);
    }
public static function setDateAdded ( \ DataContainer $ objDc ) { if ( $ objDc === null || ! $ objDc -> id || $ objDc -> activeRecord -> dateAdded > 0 ) { return false ; } \ Database :: getInstance ( ) -> prepare ( "UPDATE $objDc->table SET dateAdded=? WHERE id=? AND dateAdded = 0" ) -> execute ( time ( ) , $ objDc -> id ) ; }
Sets the current date as the date added -> callback function

@param \DataContainer $objDc
Sets the current date as the date added - > callback function