CMC for PHP
  • Namespace
  • Class
  • Tree

Namespaces

  • cmc
    • core
      • ui
    • db
      • mysqli
    • error
    • ui
      • widgets
  • PHP

Classes

  • documentFrame
  • material
  • widgetView
  • widgetViews

CMC for PHP is a web framework for PHP.
Copyright (c) 2014 by Calmarsoft company http://calmarsoft.com (FRANCE). All rights reserved.
Project information available here.

Class widgetView

Holds information about a widget that is specific for a view

This includes: the dom element, the client side properties, ...

Namespace: cmc\core\ui
Copyright: Copyright (c) Calmarsoft company (FRANCE) (http://calmarsoft.com)
License: GNU General Public License version 3
Version: 0.9
Link: CMC Project
Located at core/ui/widgetView.php

Methods summary

public static DOMNode
# seekDOMElem( cmc\ui\view $view, cmc\ui\frame $frame, string $xpath )

returns a DOM element form the view, for a given frame and xpath

returns a DOM element form the view, for a given frame and xpath

Parameters

$view
cmc\ui\view
$view
$frame
cmc\ui\frame
$frame
$xpath
string
$xpath

Returns

DOMNode
public
# __construct( DOMNode $domElem )

Parameters

$domElem
DOMNode
$domElem
public
# updateDOMElem( DOMNode $domElem )

re-assign the DOM item

re-assign the DOM item

Parameters

$domElem
DOMNode
$domElem
public
# restoreDOMElem( cmc\ui\view $view )

re-seek the DOM items from given view

re-seek the DOM items from given view

Parameters

$view
cmc\ui\view
$view
public mixed
# CltProp( string $key )

get a client-side property

get a client-side property

Parameters

$key
string
$key

Returns

mixed
public
# SetCltProp( string $key, mixed $value )

sets a client side property

sets a client side property

Parameters

$key
string
$key
$value
mixed
$value
public array
# getCltProps( )

retreives the current clt properties collection

retreives the current clt properties collection

Returns

array
public DOMNode
# GetDOMNode( )

gets the actual node item

gets the actual node item

Returns

DOMNode
public
# DOMSetHtml( string $html_code )

insert html code in the node, by replacing previous child nodes

insert html code in the node, by replacing previous child nodes

Parameters

$html_code
string
$html_code
public
# DOMSetText( string $new_text )

assigns a text value (caption) in the node

assigns a text value (caption) in the node

Parameters

$new_text
string
$new_text
public string|null
# DOMGetText( )

gets the current text value from the node item

gets the current text value from the node item

Returns

string|null
public
# DOMUpdateAttr( string $attr, string $attrval = null )

assigns an attribute value

assigns an attribute value

Parameters

$attr
string
$attr
$attrval
string
$attrval
public
# DOMRemoveAttr( string $attr )

removes an attribute value

removes an attribute value

Parameters

$attr
string
$attr
public string|null|false
# DOMGetAttr( string $attr )

gets a value of the attribute

gets a value of the attribute

returns false if attribute not present returns null if DOM element is not available

Parameters

$attr
string
$attr

Returns

string|null|false
public string|boolean
# DOMGetNodeAttr( string $nodename, string $attr )

gets a value of an attribute of a child node

gets a value of an attribute of a child node

Parameters

$nodename
string
node name
$attr
string
attribute name

Returns

string|boolean
public boolean
# DOMPutNodeAttr( string $nodename, string $attr, string $value )

sets an attribute value for a childnode

sets an attribute value for a childnode

Parameters

$nodename
string
$nodename
$attr
string
$attr
$value
string
$value

Returns

boolean
public
# DOMGetNodeWithAttrValue( mixed $view, mixed $attr, mixed $value )
public DOMNodeList
# getLineModel( cmc\ui\view $view )

gets the current line "model", used by composite widget

gets the current line "model", used by composite widget

Parameters

$view
cmc\ui\view
$view

Returns

DOMNodeList
public
# setLineModel( DOMNodeList $linemodel )

stores a line "model", used by composite widget

stores a line "model", used by composite widget

Parameters

$linemodel
DOMNodeList
$linemodel
public
# resetLineModel( )
public
# OnSerialize( )

called when serialized with the app

called when serialized with the app

public
# OnUnserialize( )

called after deserialization

called after deserialization

public
# onClone( cmc\core\ui\widgetView $srcinstance )

called after having cloned this object

called after having cloned this object

Parameters

$srcinstance
cmc\core\ui\widgetView
$srcinstance

Magic methods summary

Properties summary

protected mixed $_domElement
#
protected mixed $_domElement_path
#
protected array $_cltproperties
#
CMC for PHP API documentation generated by ApiGen 2.8.0