|
static | $coord_align = array('left', 'center', 'right', 'top', 'middle', 'bottom') |
|
static | $coord_numeric = array('[0-9]+', '[0-9]+\.[0-9]+', '[0-9]+%', '[0-9]+\.[0-9]+%') |
|
◆ evaluate()
static evaluate |
( |
|
$coord, |
|
|
|
$dim, |
|
|
|
$sec_dim = null |
|
) |
| |
|
static |
Evaluates the $coord relatively to $dim
- Paramètres
-
string | $coord | A numeric value or percent string |
int | $dim | Dimension |
int | $sec_dim | Secondary dimension (for align) |
- Renvoie
- int Calculated value
◆ fix()
static fix |
( |
|
$value, |
|
|
|
$dim, |
|
|
|
$sec_dim = null |
|
) |
| |
|
static |
Calculates and fixes a smart coordinate into a numeric value
- Paramètres
-
mixed | $value | Smart coordinate, relative to $dim |
int | $dim | Coordinate to which $value is relative |
int | $sec_dim | Secondary dimension (for align) |
- Renvoie
- int Calculated value
◆ parse()
Parses a numeric or string representation of a corrdinate into a structure
- Paramètres
-
string | $coord | Smart coordinate |
- Renvoie
- array Parsed smart coordinate
◆ $coord_align
$coord_align = array('left', 'center', 'right', 'top', 'middle', 'bottom') |
|
staticprotected |
◆ $coord_numeric
$coord_numeric = array('[0-9]+', '[0-9]+\.[0-9]+', '[0-9]+%', '[0-9]+\.[0-9]+%') |
|
staticprotected |
La documentation de cette classe a été générée à partir du fichier suivant :
- XoopsCore25-2.5.11-Beta1/htdocs/class/libraries/vendor/smottt/wideimage/lib/WideImage/Coordinate.php