\picon\web\jQuery\ui\DialogBehavior.php
Podium CMS http://code.google.com/p/podium/
Copyright (C) 2011-2012 Martin Cassidy martin.cassidy@webquub.com
Podium CMS is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Podium CMS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the General Public License for more details.
You should have received a copy of the GNU General Public License along with Podium CMS. If not, see http://www.gnu.org/licenses/.
\picon\DialogBehavior
Description of DialogBehavior
This class should be extended to take advantage of its features. It is imperative that be sub classes are serialized the preparForSerialize() be called. The picon cache manager will do this automatically but manual serialization elsewhere must call the method. Deserailization is handled automatically through the __wakeup method and any overrides MUST call the parent implementation
Transient propertie can be used by adding @Transient to the property's doc block
If using injection in a subclass, you should implement InjectOnWakeup to ensure injected resources are not null as all injected resources are transient.
- Parent(s)
- \picon\DefaultJQueryUIBehaviour < \picon\AbstractJQueryUIBehaviour < \picon\AbstractJQueryBehaviour < \picon\AbstractBehaviour < \picon\PiconSerializable
- Author
- Martin Cassidy
Methods

__wakeup(
)
:
void- Todo
- This is a bad way of forcing listeners to re register

afterRender(
$component
)
:
void| Name | Type | Description |
|---|---|---|
| $component |

beforeRender(
$component
)
:
void| Name | Type | Description |
|---|---|---|
| $component |

bind(
$component
)
:
void| Name | Type | Description |
|---|---|---|
| $component |

getBehaviourId(
)
:
voidGets the id of the behaviour within its component
Inherited from: \picon\AbstractBehaviour::getBehaviourId()
onComponentTag(
$component, $tag
)
:
void| Name | Type | Description |
|---|---|---|
| $component | ||
| $tag |

preparForSerialize(
)
:
arrayUses reflection to analyse the properties of the object and prevents transient properties from being added to the array and deconstructs closures into a SleepingClosure object which can be serialized
Inherited from: \picon\PiconSerializable::preparForSerialize()| Type | Description |
|---|---|
| array | the properties to serialize, the name of the propety as the key with the value as the value |

renderHead(
\picon\Component $component, \picon\HeaderContainer $headerContainer, \picon\HeaderResponse $headerResponse
)
:
voidThis ajax.js should NOT be rendered all the time
Inherited from: \picon\DefaultJQueryUIBehaviour::renderHead()| Name | Type | Description |
|---|---|---|
| $component | \picon\Component | |
| $headerContainer | \picon\HeaderContainer | |
| $headerResponse | \picon\HeaderResponse |

setBeforeClose(
$beforeClose, $function
=
''
)
:
void| Name | Type | Description |
|---|---|---|
| $beforeClose | ||
| $function |

setOptions(
$options
)
:
void| Name | Type | Description |
|---|---|---|
| $options |