Class waContactCategoriesField
This file is part of Webasyst framework.
Licensed under the terms of the GNU Lesser General Public License (LGPL). http://www.webasyst.com/framework/license/
- waContactField
-
waContactSelectField
-
waContactChecklistField
-
waContactCategoriesField
Package: wa-system\Contact
Copyright: 2011 Webasyst LLC
License: LGPL
Author: Webasyst LLC
Link: http://www.webasyst.com/
Located at wa-system/contact/waContactCategoriesField.class.php
Copyright: 2011 Webasyst LLC
License: LGPL
Author: Webasyst LLC
Link: http://www.webasyst.com/
Located at wa-system/contact/waContactCategoriesField.class.php
protected
|
|
public
|
|
public
|
|
public
|
|
public
string|array
|
#
getOptions( string $id = null )
Options for this select. array(id => name). Ids are stored in DB, and names are shown to user. Default implementation uses 'options' parameter passed to constructor in $options Could be redefined in subclasses to implement custom option list (e.g. from database). |
public
array|string|null
|
|
public
|
#
setParameter( mixed $p, mixed $value )
Set the value of option $p. Used by a Field Constructor editor to change field parameters. |
getType()
|
getFormatter(),
getHtmlOne()
|
__construct(),
__set_state(),
format(),
get(),
getField(),
getHTML(),
getHTMLName(),
getHtmlOneWithErrors(),
getId(),
getName(),
getParameter(),
getParameters(),
getStorage(),
getValidator(),
isExt(),
isMulti(),
isUnique(),
prepareSave(),
set(),
setParameters(),
setValue(),
validateUnique()
|
protected
|
$model |
|
|
protected
array
|
$categories |
|
#
category_id => db row |
$validate_range
|
$_type,
$id,
$name,
$options
|