public function getAvailableFrom()
    {
        if ($this->AvailableFromDate) {
            return $this->dbObject('AvailableFromDate');
        } elseif ($startDate = $this->getEventStartDate()) {
            $lastWeek = new Date();
            $lastWeek->setValue(strtotime(self::config()->get('sale_start_threshold'), strtotime($startDate->value)));
            return $lastWeek;
        }

        return null;
    }
public function getAvailableFrom()
    {
        if ($this->AvailableFromDate) {
            return $this->dbObject('AvailableFromDate');
        } elseif ($startDate = $this->getEventStartDate()) {
            $lastWeek = new Date();
            $lastWeek->setValue(strtotime(self::config()->get('sale_start_threshold'), strtotime($startDate->value)));
            return $lastWeek;
        }

        return null;
    }
public function getAvailableFrom ( ) { if ( $ this -> AvailableFromDate ) { return $ this -> dbObject ( 'AvailableFromDate' ) ; } elseif ( $ startDate = $ this -> getEventStartDate ( ) ) { $ lastWeek = new Date ( ) ; $ lastWeek -> setValue ( strtotime ( self :: config ( ) -> get ( 'sale_start_threshold' ) , strtotime ( $ startDate -> value ) ) ) ; return $ lastWeek ; } return null ; }
Get the available form date if it is set,
otherwise get it from the parent

@return \SS_DateTime|Date|\DBField|null
Get the available form date if it is set otherwise get it from the parent