Class Form
Form class
- Kotchasan\KBase
-
Kotchasan\Form
Author: Goragod Wiriya admin@goragod.com
Since: 1.0
Located at Kotchasan/Form.php
public static
static
|
|
public static
static
|
|
public static
static
|
|
public static
static
|
|
public static
static
|
|
public static
static
|
|
public static
static
|
|
public static
array
|
|
public static
static
|
|
public static
static
|
|
public static
static
|
|
public static
static
|
|
public static
static
|
|
public
string
|
#
render( string $tag,…, array $param,…, string $options,… )
ฟังก์ชั่นสร้าง Form Element. id, name, type property ต่างๆของinput label : ข้อความแสดงใน label ของ input labelClass : class ของ label comment : ถ้ากำหนดจะแสดงคำอธิบายของ input ถ้าไม่กำหนดทั้ง label และ labelClass จะเป็นการสร้าง input อย่างเดียว array('name1' => 'value1', 'name2' => 'value2', ....) |
public static
static
|
|
public static
static
|
|
public static
static
|
|
public static
static
|
|
public static
|
#
text( array $attributes = array() )
สร้าง input, select, textarea สำหรับใส่ลงในฟอร์ม id, name, type property ต่างๆของinput options สำหรับ select เท่านั้น เช่น array('value1'=> 'name1', 'value2'=>'name2', ...) label ข้อความแสดงใน label ของ input labelClass class ของ label comment ถ้ากำหนดจะแสดงคำอธิบายของ input ถ้าไม่กำหนดทั้ง label และ labelClass จะเป็นการสร้าง input อย่างเดียว |
public static
static
|
|
public static
static
|
|
public static
static
|
public
boolean
|
$ajax
ตับแปรบอกว่ามีการใช้ form แบบ Ajax หรือไม่ ถ้าใช้งานต้องมีการเรียกใช้ GAjax ด้วย |
|
public
boolean
|
$gform
ตัวแปรบอกว่ามีการใช้งานฟอร์มร่วมกับ GForm หรือไม่ ถ้าใช้งานต้องมีการเรียกใช้ GAjax ด้วย. |
|
public
string
|
$javascript
Javascript |
$cfg,
$request
|