Abstract Class MajaxFormElement

Description

General form element. Implements basic setters/getters.

  • abstract:

Located in /majax.php (line 730)

MajaxCore
   |
   --MajaxFormElement
Direct descendents
Variable Summary
 mixed $attribute_
 mixed $check_
 mixed $parent_
 mixed $valid_
Method Summary
 MajaxFormElement MajaxFormElement (array $arg, [MajaxFormElement $parent = NULL])
 void check ( $value)
 void doInitProperty ( &$name,  &$value, string $name, mixed $value)
 void getAttribute ( $name)
 void getLabel ()
 element's getName ()
 void initChecks ( $arg)
 void initProperties ( &$arg, mixed $args)
 void isValid ()
 void render ()
 void renderAttributes ([array $ignore = array()])
 void setSubmittedValud ( $val)
 void setValue ( $val)
Variables
mixed $attribute_ = array() (line 736)

Attributes

  • access: protected
mixed $check_ = array() (line 737)
  • access: protected
mixed $parent_ = NULL (line 739)
  • access: protected
mixed $submittedValue_ = NULL (line 740)
  • access: protected
mixed $valid_ = NULL (line 738)
  • access: protected
Methods
Constructor MajaxFormElement (line 750)

Creates element with parameters

  1. $arg
.

Parent element is not necessary for MajaxForm.

  • access: protected
MajaxFormElement MajaxFormElement (array $arg, [MajaxFormElement $parent = NULL])
check (line 875)
  • access: public
void check ( $value)
  • $value

Redefined in descendants as:
doInitProperty (line 784)

Init element property $name.

void doInitProperty ( &$name,  &$value, string $name, mixed $value)
  • string $name: property name
  • mixed $value: property value
  • &$name
  • &$value

Redefined in descendants as:
getAttribute (line 870)
  • access: public
void getAttribute ( $name)
  • $name
getLabel (line 850)
  • access: protected
void getLabel ()
getName (line 840)

Returns element's name.

If name is not specified, id is returned.

  • return: name
  • access: protected
element's getName ()
getSubmittedValue (line 976)
  • access: public
void getSubmittedValue ()
initChecks (line 865)
  • access: protected
void initChecks ( $arg)
  • $arg
initProperties (line 799)

Init properties with $args.

  • access: protected
void initProperties ( &$arg, mixed $args)
  • mixed $args: init properties
  • &$arg
isValid (line 768)
  • access: public
void isValid ()

Redefined in descendants as:
render (line 759)

Renders (i. e. displays) element.

  • abstract:
  • access: public
void render ()

Redefined in descendants as:
renderAttributes (line 813)

Renders attributes ignoring attributes from $ignore parameter.

  • access: protected
void renderAttributes ([array $ignore = array()])
  • array $ignore: array of ignored attributes
setSubmittedValud (line 981)
  • access: public
void setSubmittedValud ( $val)
  • $val
setValue (line 859)
  • access: public
void setValue ( $val)
  • $val

Inherited Methods

Inherited From MajaxCore

 MajaxCore::__get()
 MajaxCore::__set()

Documentation generated on Tue, 23 Feb 2010 10:23:57 +0100 by phpDocumentor 1.4.3