Overview

Namespaces

  • Kotchasan
    • Cache
    • Database
    • Http
    • Log
    • Orm
  • None
  • PDF
  • PHP
  • Psr
    • Cache
    • Http
      • Message
    • Log

Classes

  • Accordion
  • ArrayTool
  • CKEditor
  • Collection
  • Config
  • Controller
  • Country
  • Csv
  • Curl
  • Currency
  • Database
  • DataTable
  • Date
  • DOMNode
  • DOMParser
  • Email
  • File
  • Files
  • Form
  • Grid
  • Html
  • Htmldoc
  • HtmlTable
  • Image
  • InputItem
  • Inputs
  • KBase
  • Language
  • ListItem
  • Login
  • Menu
  • Mime
  • Model
  • Number
  • Object
  • Password
  • Pdf
  • Province
  • Router
  • Singleton
  • Tab
  • TableRow
  • Template
  • Text
  • Validator
  • View
  • Overview
  • Namespace
  • Class
  • Tree

Class Html

html.

Kotchasan\KBase
Extended by Kotchasan\Html

Direct known subclasses

Kotchasan\CKEditor
Namespace: Kotchasan
Author: Goragod Wiriya admin@goragod.com
Since: 1.0
Located at Kotchasan/Html.php
Methods summary
public
# __construct( $tag, $attributes = array() )

class Constructor.

class Constructor.

public static
# add( string $tag, array $attributes = array() )

แทรก tag ลงใน element เหมือนการใช้งาน innerHTML.

แทรก tag ลงใน element เหมือนการใช้งาน innerHTML.

Parameters

$tag
$attributes

Returns

static
public
# appendChild( string $html )

แทรก HTML ลงใน element ที่ตำแหน่งท้ายสุด.

แทรก HTML ลงใน element ที่ตำแหน่งท้ายสุด.

Parameters

$html
public static static
# create( string $tag, array $attributes = array() )

creat new Element.

creat new Element.

Parameters

$tag
$attributes

Returns

static
public static static
# fieldset( array $attributes = array() )

create Fieldset element.

create Fieldset element.

Parameters

$attributes

Returns

static
public static static
# form( array $attributes = array() )

create Form element.

create Form element.

Parameters

$attributes

Returns

static
public string
# innerHtml( string $html )

สร้าง element และแทรก HTML ลงใน tag ให้ผลลัพท์เป็น string เลย.

สร้าง element และแทรก HTML ลงใน tag ให้ผลลัพท์เป็น string เลย.

Parameters

$html

Returns

string
public string
# render( )

สร้างโค้ด HTML.

สร้างโค้ด HTML.

Returns

string
public
# script( string $script )

กำหนด Javascript.

กำหนด Javascript.

Parameters

$script
protected string
# renderAttributes( )

สร้าง Attributes ของ tag.

สร้าง Attributes ของ tag.

Returns

string
Properties summary
public array $attributes

attrribute ของ tag.

attrribute ของ tag.

#
public static static $form

ตัวแปรเก็บ form object.

ตัวแปรเก็บ form object.

#
protected array $javascript

Javascript.

Javascript.

#
protected array $rows

แอเรย์ของข้อมูลภายใน tag.

แอเรย์ของข้อมูลภายใน tag.

#
protected string $tag

ชื่อ tag.

ชื่อ tag.

#
Properties inherited from Kotchasan\KBase
$cfg, $request
kotchasan API documentation generated by ApiGen