ossn.lib.views.php File Reference

Go to the source code of this file.

Namespaces

 Informatikon\com
 

Functions

 ossn_include ($file= '', $params=array())
 
 ossn_view ($path= '', $params=array())
 
 ossn_args (array $attrs)
 
 ossn_extend_view ($views, $file)
 
 ossn_fetch_extend_views ($layout, $params=array())
 
 ossn_remove_extend_view ($layout)
 
 ossn_add_context ($context)
 
 ossn_is_context ($context)
 
 ossn_get_context ()
 
 ossn_set_page_layout ($layout, $params=array())
 
 ossn_view_page ($title, $content, $page= 'page')
 
 ossn_default_theme ()
 
 ossn_view_form ($name, $args=array(), $type= 'core')
 
 ossn_view_widget ($name, $title, $contents)
 
 ossn_view_template ($template= '', array $params)
 
 ossn_view_pagination ($count=false, $page_limit=10)
 

Variables

 $VIEW = new stdClass
 
$VIEW register = array()
 

Function Documentation

ossn_add_context (   $context)

Add a context to page

Parameters
string$contextName of context; edit: $arsalanshah

: Initial;

Returns
void;

Definition at line 143 of file ossn.lib.views.php.

ossn_args ( array  $attrs)

ossn_arg

Parameters
array$paramsOptions;

Definition at line 59 of file ossn.lib.views.php.

ossn_default_theme ( )

Ossn get default theme path

Returns
string

Definition at line 218 of file ossn.lib.views.php.

ossn_extend_view (   $views,
  $file 
)

Register a view;

Parameters
string$viewPath of view;
stringn$fileFile name for view; edit: $arsalanshah

: Initial; mix data

Definition at line 90 of file ossn.lib.views.php.

ossn_fetch_extend_views (   $layout,
  $params = array() 
)

Fetch a register view

Parameters
string$layoutName of view; string $params Args for file; edit: $arsalanshah

: Initial;

Returns
mixed data

Definition at line 106 of file ossn.lib.views.php.

ossn_get_context ( )

Get a current context;

edit: $arsalanshah : Initial;

Returns
false|string;

Definition at line 173 of file ossn.lib.views.php.

ossn_include (   $file = '',
  $params = array() 
)

Include a specific file

Parameters
string$fileValid file name;
array$paramsOptions; edit: $arsalanshah
Returns
mixed data

Definition at line 23 of file ossn.lib.views.php.

ossn_is_context (   $context)

Check the if are in registered context or not

Parameters

Definition at line 157 of file ossn.lib.views.php.

ossn_remove_extend_view (   $layout)

Unregister a view from system

Parameters
string$layoutName of view;

edit: $arsalanshah : Initial;

Returns
void

Definition at line 129 of file ossn.lib.views.php.

ossn_set_page_layout (   $layout,
  $params = array() 
)

Fetch a layout;

edit: $arsalanshah : Initial;

Parameters
string$layout

Definition at line 189 of file ossn.lib.views.php.

ossn_view (   $path = '',
  $params = array() 
)

View a file

Parameters
string$filevalid file name of php file without extension;
array$paramsOptions; edit: $arsalanshah
Returns
mixed data

Definition at line 42 of file ossn.lib.views.php.

ossn_view_form (   $name,
  $args = array(),
  $type = 'core' 
)

Ossn view form

Parameters
string$name
Returns
mix data

Definition at line 230 of file ossn.lib.views.php.

ossn_view_page (   $title,
  $content,
  $page = 'page' 
)

View page;

Parameters
string$titleTitle for page;
string$contentContent for page;

edit: $arsalanshah Initial;

Returns
mixed data;

Definition at line 207 of file ossn.lib.views.php.

ossn_view_pagination (   $count = false,
  $page_limit = 10 
)

Create a pagiantion using count and page limit

Parameters
integer$counttotal entities/objects
integer$page_limitNumber of entities/objects per page
Returns
false|mixed data

Definition at line 273 of file ossn.lib.views.php.

ossn_view_template (   $template = '',
array  $params 
)

View a template

Use a templates from core (image view, url view etc)

Parameters
string$templateA name of template
array$params
Returns
mix data

Definition at line 260 of file ossn.lib.views.php.

ossn_view_widget (   $name,
  $title,
  $contents 
)

Ossn view widget

Parameters
string$name
string$title
Returns
mix data

Definition at line 243 of file ossn.lib.views.php.

Variable Documentation

$VIEW = new stdClass

Definition at line 12 of file ossn.lib.views.php.

$VIEW register = array()

Definition at line 13 of file ossn.lib.views.php.