Object | --Persistent | --Layout
Located in File: /graphics.inc.php
![]() | Cols | Columns for this layout, used in GRIDBAG_LAYOUT and ROW_LAYOUT |
![]() | Rows | Rows for this layout, used in GRIDBAG_LAYOUT and COL_LAYOUT |
![]() | Type | Type of this layout, it can be any value of the available ones: |
![]() | UsePixelTrans | Specifies if the code generated should use a transparent pixel or not |
![]() | Owner | Owner of the component. [Publishes Persistent::Owner] |
Defined in class Persistent |
||
![]() | NamePath | Used to serialize/unserialize. It returns the full path to identify this component. |
![]() | Owner | Owner of the component. |
property Cols (line 123)
property Rows (line 112)
property Type (line 96)
FLOW_LAYOUT - Controls are rendered without any layout, that is, one after another
XY_LAYOUT - Controls are rendered in their fixed pos, but using HTML tables
ABS_XY_LAYOUT - Controls are rendered using absolute position
REL_XY_LAYOUT - Controls are rendered using relative positions
GRIDBAG_LAYOUT - Controls are rendered in a grid, you can set the Rows and Cols
ROW_LAYOUT - Controls are rendered in a single row, Cols property sets how many cells
COL_LAYOUT - Controls are rendered in a single column, Rows property sets how many cells
property UsePixelTrans (line 138)
To preserve compatibility with older browsers, tables must use a transparent pixel on empty cells to make the table behave correctly, on modern browsers you can set this property to false.
property NamePath
| cmp_obj | Compares top position of two objects, for internal use |
| dumpABSLayout | Dump an absolute layout |
| dumpColLayout | Dump a col layout |
| dumpFlowLayout | Dump a flow layout, basically, no layout at all |
| dumpGrid | Dump a grid layout |
| dumpGridBagLayout | Dump a table layout |
| dumpLayoutContents | Dump the layout contents depending on the layout type. |
| dumpRELLayout | Dump a fixed coordinate layout using relative coordinates |
| dumpRowLayout | Dump a row layout |
| dumpXYLayout | Dump a fixed coordinate layout using tables |
Defined in class Persistent |
||
![]() | serialize | Stores this object into the session. |
![]() | unserialize | This method uses PHP reflection to iterate through published properties (the ones starting with get) and retrieve the properties stored by a previous serialize() call. |
Defined in class Object |
||
![]() | __construct | Constructs an object and initializes its data before the object is first used. |
![]() | className | Returns a string indicating the type of the object instance (as opposed to the type of the variable passed as an argument). |
![]() | classParent | Returns the type of the immediate ancestor of a class. |
Method cmp_obj (line 201)
Method dumpABSLayout (line 149)
Dump all controls on the layout using absolute pixel coordinates.
Method dumpColLayout (line 617)
Dumps a 1 col layout
Method dumpFlowLayout (line 525)
This type of layout simply dumps controls in their creation order, one after another.
Method dumpGrid (line 632)
This method is used for rowlayout, collayout and grid layout.
Method dumpGridBagLayout (line 593)
This method dump all controls inside using the cols and rows set and using tables.
Method dumpLayoutContents (line 571)
It checks the type it has to dump and calls the appropiate method, you can also exclude certain controls to be rendered by passing an array with the classnames of the components you don't want to get rendered
Method dumpRELLayout (line 219)
Dump all controls in the layout generating div tags using relative coordinates
Method dumpRowLayout (line 605)
Dumps a 1 row layout.
Method dumpXYLayout (line 278)
Dump all controls in the layout generating tables and placing controls inside the right cells.