silverorange Code


Swat.SwatState
/Swat/SwatState.php at line 12

Interface SwatState

SwatState

public interface SwatState

Interface for controls that can store and restore their state.

Copyright:
2005-2006 silverorange
License:
http://www.gnu.org/copyleft/lesser.html LGPL License 2.1

Method Summary
mixed

getState()

Get the state of the control.

void

setState(mixed state)

Set the state of the control.

Method Detail

/Swat/SwatState.php at line 42

getState

public mixed getState()

Get the state of the control

Used to remember the current state of the control. For example, SwatEntry implements this method to return its $value property, but can return any variable type, including array, that represents the control's current state. Sub-classes should override and implement this method to store their state.

Returns:
The current state of the control.

/Swat/SwatState.php at line 26

setState

public void setState(mixed state)

Set the state of the control

Used to set the current state of the control back to a stored state. This implementation of this method should correspond to the implementation of getState(). Sub-classes should override and implement this method to store their state.

Parameters:
state - The state to load into the control.

silverorange Code