SimplOn PHP
 All Data Structures Namespaces Files Functions Variables
Public Member Functions | Data Fields
Data Class Reference
+ Inheritance diagram for Data:

Public Member Functions

 __construct ($label=null, $flags=null, $val=null, $filterCriteria=null)
 construct ($label=null, $flags=null, $val=null, $filterCriteria=null)
 htmlId ()
 htmlClasses ($append= '', $nestingLevel=null)
 cssSelector ($append= '', $nestingLevel=null)
 preRead ()
 preCreate ()
 preUpdate ()
 preDelete ()
 preSearch ()
 doRead ()
 doCreate ()
 doUpdate ()
 doSearch ()
 doDelete ()
 postRead ()
 postCreate ()
 postUpdate ()
 postDelete ()
 postSearch ()
 filterCriteria ($filterCriteria=null)
 clearValue ($filterCriteria=null)
 dataFlags ($flags=null)
 select ()
 getCSS ($method)
 getJS ($method)
 __toString ()
 inputName ($inputName=null)
 showView ($template=null)
 showInput ($fill)
 showCreate ()
 showUpdate ()
 showSearch ()
 showSelect ()
 showList ()
 label ($label=null)
 encodeURL ($method=null, array $method_params=array())

Data Fields

 $val
 $default = NULL
 $label
 $view = true
 $create = true
 $update = true
 $search = false
 $list = false
 $required = false
 $fetch = true
 $name
 $parent
 $filterCriteria = 'name == :name'
 $tip
 $tipInline
 $validationRequired = 'This field is required'

Detailed Description

Todo:
Agregar posibilidad de especificar indices de b�squeda: una posible soluci�n es la de usar el parametro $flags usando el metodo search() de ahi entender si un dato se va a usar para la b�squeda y tambi�n dar la posibilidad de un "override" para especificar de modo explicito, si se quiere o no un indice en dicho dato. Basandose sobre el tipo de dato, elegir el tipo de indice o basarse sobr un atributo del dato.

__construct($label=null,$campo=null,$inputName=null,$val=null) Si los parametros estan vacios causará que se use la clase __toString() Regresa el campo que se debe usar para generar consultas a la Fuente de datos - En SQL puede permite (SELECTS) complejos usando la asigancion " AS " inputName($prefijo=null) Regresa la str del name del input para los formularios strValorQuery() Valor como se debe usar en los Querys SQL (es decir con comillas en el caso de los strings) strQueryValueColum() Da la asiganacion de valor para los Updates de SQL HTML() Regresa el valor como debe imprimirse en HTML createInput($prefijo=null,$printval=false) Input a desplegarse cuando se desea moar un formaulario de captura del dato updateInput($prefijo=null,$printval=true) Input a desplegarse cuando se desea moar un formaulario de edicion del dato InputBuscador($prefijo) para de los campos de busqueda del buscador Where() para armar las consultas la seccion Where de las consultas SQL Label() Regresa la para poner como etiqueta antes de los inputs Header() Regresa los necesariso para inlcuir librerias JA Componente para basico definir campos de los elementos

Version:
1.0
Author:
Ruben Schaffer
Todo:
-Poner funciones UTF8 en setval -Agregar excepciones: al asignar valor(si el valor es viable), al llenar desde fuente de datoso y/o REQUEST (validad si el dato esta en el arreglo) -Funciones set de -labael campo campoAS e imputname- que verifique que tiene estan en l formato correcto

$campo field $asField asField

Definition at line 70 of file Data.php.


Constructor & Destructor Documentation

__construct ( label = null,
flags = null,
val = null,
filterCriteria = null 
)

search operands:

>

< >=

<=

!= ~= ^= $=


Complex operations are just simple operations jointed with ANDs and ORs, so it'd be possible to create "Operators" objects that defines those complex operations.

(name > val1) OR (name < val2)

a <= x <= b a > x || x < b

  • Assings the Label, Flags, Value(val) and Serch operand if recibed
  • Calls user defined construct
Parameters:
string$labelHuman readable descrition of the atribute, it's intended to apear in forms and tables
string$flagsVCUSRLF flags sets when the Data will be used within an element {
See also:
dataFlags}
Parameters:
mixed$valIf sended sets the value of the data since it's creation
string$searchOpDetermines how the data value will be cmpared/evalueted in queries to the Data Storage

Reimplemented in RadioButtonSelfId, and ComplexData.

Definition at line 189 of file Data.php.


Member Function Documentation

Tells PHP how to render this object as a string

Returns:
ing

Definition at line 385 of file Data.php.

clearValue ( filterCriteria = null)

Definition at line 307 of file Data.php.

construct ( label = null,
flags = null,
val = null,
filterCriteria = null 
)

User defined constructor, called within __constructor(), Useful in child clasess to define any class specific construction code without overwritning the __construct method

Definition at line 211 of file Data.php.

cssSelector ( append = '',
nestingLevel = null 
)

Reimplemented in ElementLink, and DeleteAction.

Definition at line 228 of file Data.php.

dataFlags ( flags = null)

Sets create, update, search, list, required and fetch flags according to the letters in $flags

Parameters:
ing$flagsThis ing indicates the SimplOndata where it must be used by the SimplOnelement's to do so if sended the sting must contain the first letter of any the following "uses": view, create, update, search, list, required. if the letter is included (the order desn't matter) that use will be set to true if not to false. see the help avobe to see what each of this does.

Reimplemented in Id.

Definition at line 323 of file Data.php.

doCreate ( )

Reimplemented in ElementsContainer, Password, ComplexData, and Message.

Definition at line 252 of file Data.php.

doDelete ( )

Reimplemented in ComplexData.

Definition at line 273 of file Data.php.

doRead ( )

Reimplemented in ElementsContainer, Password, ComplexData, and Message.

Definition at line 245 of file Data.php.

doSearch ( )

Reimplemented in ElementsContainer, Password, ComplexData, and Message.

Definition at line 266 of file Data.php.

doUpdate ( )

Reimplemented in ElementsContainer, Password, ComplexData, and Message.

Definition at line 259 of file Data.php.

encodeURL ( method = null,
array $  method_params = array() 
)

Reimplemented in SelectAction.

Definition at line 445 of file Data.php.

filterCriteria ( filterCriteria = null)

Definition at line 297 of file Data.php.

getCSS ( method)

Definition at line 354 of file Data.php.

getJS ( method)

Reimplemented in ElementsContainer, and ElementContainer.

Definition at line 363 of file Data.php.

htmlClasses ( append = '',
nestingLevel = null 
)

Reimplemented in ElementLink, and DeleteAction.

Definition at line 218 of file Data.php.

htmlId ( )

Definition at line 214 of file Data.php.

inputName ( inputName = null)

Gives the name of the field for the create or update forms (usualy an HTML form)

Parameters:
$prefijoNombre=null valor que se puede usar para distinguir los diversos de dos elementos
Returns:
ing

Definition at line 395 of file Data.php.

label ( label = null)

Returns the label for the input

Returns:
ing

Definition at line 437 of file Data.php.

Reimplemented in ElementsContainer.

Definition at line 283 of file Data.php.

Definition at line 289 of file Data.php.

postRead ( )

Reimplemented in ElementsContainer.

Definition at line 280 of file Data.php.

Definition at line 292 of file Data.php.

Definition at line 286 of file Data.php.

preCreate ( )

Definition at line 235 of file Data.php.

preDelete ( )

Definition at line 239 of file Data.php.

preRead ( )

Definition at line 233 of file Data.php.

preSearch ( )

Definition at line 241 of file Data.php.

preUpdate ( )

Definition at line 237 of file Data.php.

select ( )

Definition at line 349 of file Data.php.

Reimplemented in Password.

Definition at line 411 of file Data.php.

showInput ( fill) [abstract]
showList ( )

Definition at line 427 of file Data.php.

Definition at line 419 of file Data.php.

Reimplemented in ElementContainer.

Definition at line 423 of file Data.php.

Reimplemented in Password.

Definition at line 415 of file Data.php.

showView ( template = null)

Reimplemented in ElementsContainer, ElementContainer, RadioButtonSelfId, RadioButtonNumber, SimplOnLink, and PrintF.

Definition at line 405 of file Data.php.


Field Documentation

$create = true

Reimplemented in RadioButtonSelfId, Id, Hidden, StringId, ComplexData, Message, String, and DArray.

Definition at line 110 of file Data.php.

$default = NULL

Definition at line 88 of file Data.php.

$fetch = true

Reimplemented in Message, RadioButtonSelfId, ComplexData, and ElementsContainer.

Definition at line 141 of file Data.php.

$filterCriteria = 'name == :name'

Reimplemented in String.

Definition at line 147 of file Data.php.

Definition at line 97 of file Data.php.

$list = false

Reimplemented in StringId, Message, ComplexData, Password, String, ElementLink, and Text.

Definition at line 128 of file Data.php.

$name

Definition at line 141 of file Data.php.

$parent

Reimplemented in ComplexData, ElementsContainer, and ElementContainer.

Definition at line 141 of file Data.php.

$required = false

Reimplemented in RadioButtonSelfId, Id, StringId, Hidden, Message, ComplexData, Password, and ElementLink.

Definition at line 134 of file Data.php.

$search = false

Reimplemented in ComplexData, StringId, Password, and Message.

Definition at line 122 of file Data.php.

$tip

Definition at line 151 of file Data.php.

$tipInline

Definition at line 152 of file Data.php.

$update = true

Reimplemented in RadioButtonSelfId, Id, Hidden, StringId, ComplexData, Message, String, and DArray.

Definition at line 116 of file Data.php.

$val

Definition at line 79 of file Data.php.

$validationRequired = 'This field is required'

Reimplemented in Email.

Definition at line 153 of file Data.php.

$view = true

Reimplemented in RadioButtonSelfId, Id, Hidden, StringId, ComplexData, Password, Message, ElementLink, String, and DArray.

Definition at line 104 of file Data.php.


The documentation for this class was generated from the following file: