CMC for PHP
  • Namespace
  • Class
  • Tree

Namespaces

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

Classes

  • dynframe
  • dynview
  • frame
  • view

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 dynview

dynamic view

cmc\ui\view implements cmc\core\ISerializable
Extended by cmc\ui\dynview implements cmc\core\ISerializable
Namespace: cmc\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 ui/dynview.php

Methods summary

public static
# dynview( cmc\sess $sess, cmc\ui\view $viewbase )
public
# hasDynSect( mixed $cmcId )
public true
# is_dynamic( )

Returns

true

Overrides

cmc\ui\view::is_dynamic
public
# viewUpdate( )

updates the dynamic part of the view by updating the DOM from the properties on each dynamic frame

updates the dynamic part of the view by updating the DOM from the properties on each dynamic frame

public type
# POSTupdatedata( type $data )

called after POST process for preparing POST answer data

called after POST process for preparing POST answer data

Parameters

$data
type
$data

Returns

type
public type
# POSTfireEvent( type $event )

called for each event present in the POST request

called for each event present in the POST request

this propagates the event on the corresponding frame

Parameters

$event
type
$event

Returns

type
public
# onPOST( )

POST main handling method

POST main handling method

decodes the data, calls POSTupdatedata and then POSTfireEvent

public boolean
# isAjax( )

returns if answer is ajax

returns if answer is ajax

Returns

boolean
public type
# POSTanswer( )

main POST answer computing method

main POST answer computing method

Returns

type
public
# setRedirect( string $new_location, boolean $bReplace = false )

defines a redirect answer

defines a redirect answer

Parameters

$new_location
string
$new_location
$bReplace
boolean
$bReplace if true the original location will be hidden and won't be present in the navigator's history
public
# setRedirectBack( string $dft_location, mixed $bReplace = false )

defines a 'back' redirection

defines a 'back' redirection

Parameters

$dft_location
string
$dft_location value of location if history is not sufficient
$bReplace
public string|null
# getRedirect( )

retrieves the redirection address

retrieves the redirection address

Returns

string|null
public
# setSession( type $sess )

rebinds session (used after clone from original view)

rebinds session (used after clone from original view)

Parameters

$sess
type
$sess
public
# dropMaterial( )
public
# takeMaterial( mixed $sess, mixed $statview )
public
# OnSerialize( )

called before serialize

called before serialize

Overrides

cmc\ui\view::OnSerialize

Implementation of

cmc\core\ISerializable::OnSerialize()
public
# OnUnserialize( )

called after unserialize

called after unserialize

Overrides

cmc\ui\view::OnUnserialize

Implementation of

cmc\core\ISerializable::OnUnserialize()

Methods inherited from cmc\ui\view

ValidForSave(), addBottomScriptCode(), addScriptCode(), create(), framesInit(), getDOMElement(), getDOMSubElement(), getFrame(), getImageData(), getLogicPath(), getName(), getResponseCode(), getSectionDOMElement(), getSectionDOMElements(), getSections(), getapp(), load(), material(), materialChanged(), renderView(), setImageAnswer(), setResponseCode(), setapp()

Magic methods summary

Constants summary

Constants inherited from cmc\ui\view

className

Properties summary

Properties inherited from cmc\ui\view

$_app, $_currentmaterial, $_frames, $_material_mdt, $_respCode, $_sections, $_viewLogicPath, $_viewname

CMC for PHP API documentation generated by ApiGen 2.8.0