protected function get_either_description($not, $standalone) {
        $direction = $this->get_logical_direction($not);
        $midnight = self::is_midnight($this->time);
        $midnighttag = $midnight ? '_date' : '';
        $satag = $standalone ? 'short_' : 'full_';
        switch ($direction) {
            case self::DIRECTION_FROM:
                return get_string($satag . 'from' . $midnighttag, 'availability_date',
                        self::show_time($this->time, $midnight, false));
            case self::DIRECTION_UNTIL:
                return get_string($satag . 'until' . $midnighttag, 'availability_date',
                        self::show_time($this->time, $midnight, true));
        }
    }
protected function get_either_description($not, $standalone) {
        $direction = $this->get_logical_direction($not);
        $midnight = self::is_midnight($this->time);
        $midnighttag = $midnight ? '_date' : '';
        $satag = $standalone ? 'short_' : 'full_';
        switch ($direction) {
            case self::DIRECTION_FROM:
                return get_string($satag . 'from' . $midnighttag, 'availability_date',
                        self::show_time($this->time, $midnight, false));
            case self::DIRECTION_UNTIL:
                return get_string($satag . 'until' . $midnighttag, 'availability_date',
                        self::show_time($this->time, $midnight, true));
        }
    }
protected function get_either_description ( $ not , $ standalone ) { $ direction = $ this -> get_logical_direction ( $ not ) ; $ midnight = self :: is_midnight ( $ this -> time ) ; $ midnighttag = $ midnight ? '_date' : '' ; $ satag = $ standalone ? 'short_' : 'full_' ; switch ( $ direction ) { case self :: DIRECTION_FROM : return get_string ( $ satag . 'from' . $ midnighttag , 'availability_date' , self :: show_time ( $ this -> time , $ midnight , false ) ) ; case self :: DIRECTION_UNTIL : return get_string ( $ satag . 'until' . $ midnighttag , 'availability_date' , self :: show_time ( $ this -> time , $ midnight , true ) ) ; } }
Shows the description using the different lang strings for the standalone
version or the full one.

@param bool $not True if NOT is in force
@param bool $standalone True to use standalone lang strings
Shows the description using the different lang strings for the standalone version or the full one .