Get the selected duration as array.

@return mixed An array containing 'v'=>xx, 'u'=>xx, or null if not set
979365
public function get_setting() {
        $seconds = $this->config_read($this->name);
        if (is_null($seconds)) {
            return null;
        }

        return self::parse_seconds($seconds);
    }
1232968
public function getTotalTimeoutMs()
    {
        $field = EnumRequestOption::TOTAL_TIMEOUT_MS;
        return isset($this->options[$field]) ? $this->options[$field] : 0;
    }
1319238
public function getDuration() : ?string 
    {
        if ( ! $this->hasDuration()) {
            $this->setDuration($this->getDefaultDuration());
        }
        return $this->duration;
    }
474967
public function getVariables() 
	{
		if(isset($this->attributes['class'])) {
			$this->attributes['class'] = trim($this
			->attributes['class'].' form-control');
		} else {
			$this->attributes['class'] = 'form-control';
		}
		
		return array(
			'attributes' 	=> $this->attributes,
			'items'			=> $this->items,
			'selected'		=> $this->value);
	}
311360
public function toString()
    {
        $value = [];

        $this->setValueArrayString(
            $value,
            'CorrelationId',
            $this->_correlationId
        );

        $this->setValueArrayString(
            $value,
            'SessionId',
            $this->_sessionId
        );

        $this->setValueArrayInt(
            $value,
            'DeliveryCount',
            $this->_deliveryCount
        );

        $this->setValueArrayDateTime(
            $value,
            'LockedUntilUtc',
            $this->_lockedUntilUtc
        );

        $this->setValueArrayString(
            $value,
            'LockToken',
            $this->_lockToken
        );

        $this->setValueArrayString(
            $value,
            'MessageId',
            $this->_messageId
        );

        $this->setValueArrayString(
            $value,
            'Label',
            $this->_label
        );

        $this->setValueArrayString(
            $value,
            'ReplyTo',
            $this->_replyTo
        );

        $this->setValueArrayString(
            $value,
            'SequenceNumber',
            $this->_sequenceNumber
        );

        $this->setValueArrayFloat(
            $value,
            'TimeToLive',
            $this->_timeToLive
        );

        $this->setValueArrayString(
            $value,
            'To',
            $this->_to
        );

        $this->setValueArrayDateTime(
            $value,
            'ScheduledEnqueueTimeUtc',
            $this->_scheduledEnqueueTimeUtc
        );

        $this->setValueArrayString(
            $value,
            'ReplyToSessionId',
            $this->_replyToSessionId
        );

        $this->setValueArrayString(
            $value,
            'MessageLocation',
            $this->_messageLocation
        );

        $this->setValueArrayString(
            $value,
            'LockLocation',
            $this->_lockLocation
        );

        $result = json_encode($value);

        return $result;
    }
289849
private static function getSeconds(): array
    {
        $seconds = [-1 => static::getConstant('TXT_DATETIME_SS', 'TXT_DATETIME_SS')];
        for ($i = 0; $i <= 59; $i++) {
            $seconds[$i] = \sprintf('%02s', $i);
        }
        return $seconds;
    }
1352691
private function getTimePeriodField(): array
    {
        return [
            $this->translator->trans(/** @Desc("Last week") */ 'search.last_week', [], 'search') => 'P0Y0M7D',
            $this->translator->trans(/** @Desc("Last month") */ 'search.last_month', [], 'search') => 'P0Y1M0D',
            $this->translator->trans(/** @Desc("Last year") */ 'search.last_year', [], 'search') => 'P1Y0M0D',
            $this->translator->trans(/** @Desc("Custom range") */ 'search.custom_range', [], 'search') => 'custom_range',
        ];
    }
204725
public function getTimestamp()
    {
        if ($this->isNull($this->value)) {
            return null;
        }
        $value = strtotime($this->getValue());

        return $value ?: null;
    }
1259748
public function getArrayCopy()
	{
		return array(
			'ActivityId' => $this->activityId,
			'ProjectId' => $this->projectId,
			'Name' => $this->name,
			'Description' => $this->description,
			'Tags' => $this->tags,
			'Started' => $this->started,
			'Stopped' => $this->stopped,
			// *Extra* properties
			'StartedFormatted' => $this->getStartedFormatted(),
			'StoppedFormatted' => $this->getStoppedFormatted(),
			'Duration' => $this->getDuration(),
			'DurationFormatted' => $this->getDurationFormatted(),
			'IsWithinOneDay' => $this->isWithinOneDay()
		);
	}
460488
public function getJsonValue()
    {
        $return = [];
        foreach ($this->getParts() as $item) {
            list($start, $end) = explode('/', $item, 2);

            $start = DateTimeParser::parseDateTime($start);

            // This is a duration value.
            if ('P' === $end[0]) {
                $return[] = [
                    $start->format('Y-m-d\\TH:i:s'),
                    $end,
                ];
            } else {
                $end = DateTimeParser::parseDateTime($end);
                $return[] = [
                    $start->format('Y-m-d\\TH:i:s'),
                    $end->format('Y-m-d\\TH:i:s'),
                ];
            }
        }

        return $return;
    }
1111665
public function toString()
    {

        $transaction = array();
        $transaction['code'] = $this->code;
        $transaction['email'] = $this->sender ? $this->sender->getEmail() : "null";
        $transaction['date'] = $this->date;
        $transaction['reference'] = $this->reference;
        $transaction['status'] = $this->status ? $this->status->getValue() : "null";
        $transaction['itemsCount'] = is_array($this->items) ? count($this->items) : "null";

        $transaction = "Transaction: " . var_export($transaction, true);

        return $transaction;

    }
329819
public function getParametersArray()
    {
        $result = parent::getParametersArray();

        if (!empty($this->getOffset())) {
            $result['offset'] = $this->getOffset();
        }

        if (!empty($this->getLimit())) {
            $result['limit'] = $this->getLimit();
        }

        if ($this->getTypes()->count() > 0) {
            $result['type'] = implode('|', $this->getTypes()->toArray());
        }

        if (!empty($this->getName())) {
            $result['f_name'] = $this->getName();
        }

        if (!empty($this->getCategoryID())) {
            $result['f_category'] = $this->getCategoryID();
        }

        if (!empty($this->getRepertoireID())) {
            $result['f_repertoire'] = $this->getRepertoireID();
        }

        if (!empty($this->getLocation())) {
            $result['f_location'] = $this->getLocation();
        }

        return $result;
    }
902570
public function toOptionArray()
    {
        $result = $row = [];
        $i = 0;
        foreach ($this->times as $one) {
            if ($i == 0) {
                $row = [
                    'value' => $one,
                    'label' => $one . __(' Hour'),
                ];
            } else {
                $row = [
                    'value' => $one,
                    'label' => $one . __(' Hours'),
                ];
            }
            $result[] = $row;
            ++$i;
        }

        return $result;
    }
81171
public function getSeconds()
	{
		return $this->Value->s + ( @isset( $this->Value->microseconds ) ? "0." . $this->Value->microseconds : 0 );
	}
480771
public function getBindValuesSELECT()
    {
        $bind_values = $this->bind_values;
        $i           = 1;
        foreach ($this->bind_where as $val) {
            $bind_values[$i] = $val;
            $i++;
        }
        foreach ($this->bind_having as $val) {
            $bind_values[$i] = $val;
            $i++;
        }
        return $bind_values;
    }
713420
public function getTTL()
    {
        if (is_null($this->expiration)) {
            return null;
        }
        if ($this->expiration > $_SERVER['REQUEST_TIME']) {
            return $this->expiration - $_SERVER['REQUEST_TIME'];
        }
        return 0;
    }
417752
public function getVideoDuration()
    {
        $this->ensureMediaGroupIsNotNull();
        if ($this->getMediaGroup()->getDuration() != null) {
            return $this->getMediaGroup()->getDuration()->getSeconds();
        } else {
            return null;
        }
    }