XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
ExtraItem Class Reference

Public Member Functions

 __construct ($module_srl, $idx, $name, $type= 'text', $default=null, $desc= '', $is_required= 'N', $search= 'N', $value=null, $eid= '')
 
 setValue ($value)
 
 _getTypeValue ($type, $value)
 
 getValue ()
 
 getValueHTML ()
 
 getFormHTML ()
 

Public Attributes

 $module_srl = 0
 
 $idx = 0
 
 $name = 0
 
 $type = 'text'
 
 $default = null
 
 $desc = ''
 
 $is_required = 'N'
 
 $search = 'N'
 
 $value = null
 
 $eid = ''
 

Detailed Description

Each value of the extra vars

Author
NAVER (devel.nosp@m.oper.nosp@m.s@xpr.nosp@m.esse.nosp@m.ngine.nosp@m..com)

Definition at line 83 of file Extravar.class.php.

Constructor & Destructor Documentation

ExtraItem::__construct (   $module_srl,
  $idx,
  $name,
  $type = 'text',
  $default = null,
  $desc = '',
  $is_required = 'N',
  $search = 'N',
  $value = null,
  $eid = '' 
)

Constructor

Parameters
int$module_srlSequence of module
int$idxIndex of extra variable
string$typeType of extra variable. text, homepage, email_address, tel, textarea, checkbox, date, sleect, radio, kr_zip
string[]$default Default values
string$descDescription
string$is_requiredWhether required or not requred this extra variable. Y, N
string$searchWhether can or can not search this extra variable
string$valueValue
string$eidUnique id of extra variable in module
Returns
void

Definition at line 160 of file Extravar.class.php.

Member Function Documentation

ExtraItem::_getTypeValue (   $type,
  $value 
)

Returns a given value converted based on its type

Parameters
string$typeType of variable
string$valueValue
Returns
string Returns a converted value

Definition at line 197 of file Extravar.class.php.

ExtraItem::getFormHTML ( )

Returns a form based on its type

Returns
string Returns a form html.

Definition at line 355 of file Extravar.class.php.

ExtraItem::getValue ( )

Returns a value for HTML

Returns
string Returns a value expressed in HTML.

Definition at line 297 of file Extravar.class.php.

ExtraItem::getValueHTML ( )

Returns a value for HTML

Returns
string Returns a value expressed in HTML.

Definition at line 307 of file Extravar.class.php.

ExtraItem::setValue (   $value)

Sets Value

Parameters
string$valueThe value to set
Returns
void

Definition at line 185 of file Extravar.class.php.

Member Data Documentation

ExtraItem::$default = null

Definition at line 114 of file Extravar.class.php.

ExtraItem::$desc = ''

Definition at line 120 of file Extravar.class.php.

ExtraItem::$eid = ''

Definition at line 144 of file Extravar.class.php.

ExtraItem::$idx = 0

Definition at line 96 of file Extravar.class.php.

ExtraItem::$is_required = 'N'

Definition at line 126 of file Extravar.class.php.

ExtraItem::$module_srl = 0

Definition at line 90 of file Extravar.class.php.

ExtraItem::$name = 0

Definition at line 102 of file Extravar.class.php.

ExtraItem::$search = 'N'

Definition at line 132 of file Extravar.class.php.

ExtraItem::$type = 'text'

Definition at line 108 of file Extravar.class.php.

ExtraItem::$value = null

Definition at line 138 of file Extravar.class.php.


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