xuServer  4.2
xuServer est un Framework ORM écrit en PHP pour des bases de données MySQL.
Public Member Functions | Data Fields
xsMethod Class Reference

Public Member Functions

 __toString ()
 
 __construct (&$parent, $row)
 
 unset ()
 
 masked ($val=true)
 
 method ($val="")
 
 warning ()
 
 light ()
 
 style ($val="light")
 
 dropdown ()
 
 footer ()
 
 _form_group ($jqSubmit="")
 

Data Fields

 $parent =""
 pointer to parent xsClass More...
 
 $name =""
 name for given method More...
 
 $list =1
 may method be displayed in forms More...
 
 $type ="xs-fn-post"
 
 $style ="light"
 
 $container =""
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( $parent,
  $row 
)

Member Function Documentation

◆ __toString()

__toString ( )

return method name when invoking it as a string

Returns
string

◆ _form_group()

_form_group (   $jqSubmit = "")

◆ dropdown()

dropdown ( )

◆ footer()

footer ( )

◆ light()

light ( )

Set button bootstrap style to light

Returns
xsMethod

◆ masked()

masked (   $val = true)

prevent from beeing read clientside (form inputs, table cells ...)

Returns
xsProperty

◆ method()

method (   $val = "")

Set formular method when click on button ($val = GET or POST) if no $val given, the function toggles the GET and POST

Parameters
string$valif empty toggle GET <=> POST,
Returns
xsMethod

◆ style()

style (   $val = "light")

Set button bootstrap style

Parameters
string$val
Returns
xsMethod

◆ unset()

unset ( )

Unset the method from xsClass current instance

Returns
xsClass

◆ warning()

warning ( )

Set button bootstrap style to warning

Returns
xsMethod

Field Documentation

◆ $container

$container =""

determines the position of Button : xs-fn-dropdown or xs-fn-footer (or xs-fn-fieldset ?)

◆ $list

$list =1

may method be displayed in forms

◆ $name

$name =""

name for given method

◆ $parent

$parent =""

pointer to parent xsClass

◆ $style

$style ="light"

determines the btn-style (bootstrap colors : danger, success ...)

◆ $type

$type ="xs-fn-post"

determines wether method is used posting the form (xs-fn-post) , or not (default : xs-fn-get)