browser.php
- Package
- browser.php
- Todo
- implement the various "abstraction layers" to specific (browser-related) css properties
Functions

__css__(array $array) : void
This function records the css attributes of selector or list of selectors (tags, classes and so on) for a further elaboration and use
Name | Type | Description |
---|---|---|
$array | array | A multidimensional array with selectors (or list of selectors) as keys, and an array of attributes / values as values |
- Package
- browser.php

__css__render() : void
A function to render the css declarations recorded using the function __css__
- Package
- browser.php

__px__(integer $px) : string
This function is used to scale the measures expressed in pixels in a similar way the zoom function of the browser does: everything is scaled, both text and images.
Name | Type | Description |
---|---|---|
$px | integer | Value expressed in pixels |
Type | Description |
---|---|
string | Interpolated pixel value with suffix 'px' |
- Package
- browser.php

obj(array $obj) : void
A function by which calling the class Obj without the use of the 'new' operator
Name | Type | Description |
---|---|---|
$obj | array | The class argument of the new instance of Obj_ |
- Package
- browser.php
\Obj_
Properties
Methods


__construct(array $obj) : \Obj_
Assigns the class argument ($this->obj)
Name | Type | Description |
---|---|---|
$obj | array | An associative array to be used as class argument |
Type | Description |
---|---|
\Obj_ | Returns the class instance |
- Fluent
- This method is part of a fluent interface and will return the same instance


implode_map(string $tok_a, string $tok_b) : callable
A simple function to "implode" a single-dimension associative array
Name | Type | Description |
---|---|---|
$tok_a | string | The token to be used to join the key and the value |
$tok_b | string | The token to be used to join key / value pairs |
Type | Description |
---|---|
callable | Returns an instance of the class Str (documented above) |
\Str_
Properties


boolean $is_array = false
Records if the parameter passed to the constructor is an array, to provide the expected output when the get() method is called
false
Details- Type
- boolean
Methods


__construct(string | array $mixed) : \Str_
The class constructor. We allow both single strings and array of strings to which perform any method of the class
Name | Type | Description |
---|---|---|
$mixed | string | array | A string or an array of strings |
Type | Description |
---|---|
\Str_ | Returns the class instance |
- Fluent
- This method is part of a fluent interface and will return the same instance