$value
$value :
Url standard object.
If you want to extract parameters from a url, or to build/change its parts, this is a class for that.
setScheme(\app\framework\Component\StdLib\StdObject\StringObject\StringObject|string $scheme) : $this
Set url scheme.
\app\framework\Component\StdLib\StdObject\StringObject\StringObject|string | $scheme |
|
setHost(\app\framework\Component\StdLib\StdObject\StringObject\StringObject|string $host) : $this
Set url host.
\app\framework\Component\StdLib\StdObject\StringObject\StringObject|string | $host | Url host. |
setPort(\app\framework\Component\StdLib\StdObject\StringObject\StringObject|string $port) : $this
Set url port.
\app\framework\Component\StdLib\StdObject\StringObject\StringObject|string | $port | Url port. |
setPath(\app\framework\Component\StdLib\StdObject\StringObject\StringObject|string $path) : $this
Set url path.
\app\framework\Component\StdLib\StdObject\StringObject\StringObject|string | $path | Url path. |
setQuery(\app\framework\Component\StdLib\StdObject\StringObject\StringObject|\app\framework\Component\StdLib\StdObject\ArrayObject\ArrayObject|string|array $query, boolean $append = false) : $this
Set url query param.
\app\framework\Component\StdLib\StdObject\StringObject\StringObject|\app\framework\Component\StdLib\StdObject\ArrayObject\ArrayObject|string|array | $query | Query params. |
boolean | $append | Do you want to append or overwrite current query param. In case when you are appending values, the values from $query, that already exist in the current query, will be overwritten by the ones inside the $query. |
isSerialized(string $value, mixed $result = null) : boolean
Checks if a string is serialized using quick string manipulation to throw out obviously incorrect strings. Unserialize is then run on the string to perform the final verification.
Valid serialized forms are the following:
b:1;
i:1;
d:0.2;
s:4:"test";
a:3:{i:0;i:1;i:1;i:2;i:2;i:3;}
O:8:"stdClass":0:{}
N;
string | $value | Value to test for serialized form |
mixed | $result | Result of unserialize() of the $value |
True if $value is serialized data, otherwise false
buildUrl(\app\framework\Component\StdLib\StdObject\ArrayObject\ArrayObject|array $parts) : \app\framework\Component\StdLib\StdObject\UrlObject\UrlObject
Build a UrlObject from array parts.
\app\framework\Component\StdLib\StdObject\ArrayObject\ArrayObject|array | $parts | Url parts, possible keys are: 'scheme', 'host', 'port', 'path' and 'query' |
getPath(boolean $asStringObject = false) : string|\app\framework\Component\StdLib\StdObject\StringObject\StringObject
Get the path from the current url.
boolean | $asStringObject | Return instance of StringObject |
Path from the current instance.
arr(array $array = array()) : \app\framework\Component\StdLib\StdObject\ArrayObject\ArrayObject
Creates an instance of Array Standard Object.
array | $array |
datetime(string|integer $time = "now", null|string $timezone = null) : \app\framework\Component\StdLib\StdObject\DateTimeObject\DateTimeObject
Create an instance of DateTime Standard Object.
string|integer | $time | A date/time string. List of available formats is explained here http://www.php.net/manual/en/datetime.formats.php |
null|string | $timezone | Timezone in which you want to set the date. Here is a list of valid timezones: http://php.net/manual/en/timezones.php |
str(string $string) : \app\framework\Component\StdLib\StdObject\StringObject\StringObject
Creates an instance of String Standard Object.
string | $string |
url(string $url) : \app\framework\Component\StdLib\StdObject\UrlObject\UrlObject
Creates an instance of Url Standard Object.
string | $url |