PHP Класс Axis, GotCms

Наследование: extends AxisPrototype
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$fit
$length
$max_value
$min_unit
$min_value
$uneven
$unit_size
$zero

Открытые методы

Метод Описание
Grid ( $min, $round_up = false ) Returns the grid spacing
Uneven ( ) Returns TRUE if the grid spacing does not fill the grid
Unit ( ) Returns the size of a unit in grid space
Zero ( ) Returns the distance along the axis where 0 should be
__construct ( $length, $max_val, $min_val, $min_unit, $fit = false )

Приватные методы

Метод Описание
find_division ( $length, $min, &$count, &$neg_count, &$magnitude ) Determine the axis divisions
nice ( $n, $m ) Returns TRUE if the number $n is 'nice'
sub_division ( $length, $min, &$count, &$neg_count, &$magnitude ) Subdivide when the divisions are too large

Описание методов

Grid() публичный Метод

Returns the grid spacing
public Grid ( $min, $round_up = false )

Uneven() публичный Метод

Returns TRUE if the grid spacing does not fill the grid
public Uneven ( )

Unit() публичный Метод

Returns the size of a unit in grid space
public Unit ( )

Zero() публичный Метод

Returns the distance along the axis where 0 should be
public Zero ( )

__construct() публичный Метод

public __construct ( $length, $max_val, $min_val, $min_unit, $fit = false )

Описание свойств

$fit защищенное свойство

protected $fit

$length защищенное свойство

protected $length

$max_value защищенное свойство

protected $max_value

$min_unit защищенное свойство

protected $min_unit

$min_value защищенное свойство

protected $min_value

$uneven защищенное свойство

protected $uneven

$unit_size защищенное свойство

protected $unit_size

$zero защищенное свойство

protected $zero