phpDocumentor SGL
cms
[ class tree: SGL ] [ index: SGL ] [ all elements ]

Class: SGL_Context

Source Location: /lib/Context.php

Class SGL_Context

Class Overview

A standard format for web post data.

  1.   //  pass data from post as arg
  2.   $oContext new SGL_Context($input);
  3.   //  context strategy determines if Content or ContentType
  4.   //  and maps data correctly
  5.   $oContext->process();
  6.  
  7.   //  SGL_Content object can be built from any input (php object, post, xml, etc)
  8.   $oContent new SGL_Content($oContext);
  9.  
  10.   // must handle:
  11.   //     - creating/updating existing content
  12.   //     - creating/updating new content types
  13.   //
  14.   //  if caller doesn't finds SGL_WebContext->id, it's an insert, otherwise edit
  15.   //  contentype call = $input->contentType
  16.   //  content call    = $input->content

Located in /lib/Context.php [line 46]



		
		
		
		

Properties

Methods

[ Top ]
Property Summary
mixed   $oData  
mixed   $strategy  

[ Top ]
Method Summary
SGL_Context   __construct()   Initialises context object with SGL $input object.
SGL_Context   process()   Determines context from input and returns SGL_Context object.

[ Top ]
Properties
mixed   $oData = null [line 48]
API Tags:
Access:  protected


[ Top ]
mixed   $strategy = null [line 49]
API Tags:
Access:  protected


[ Top ]
Methods
Constructor __construct  [line 57]

  SGL_Context __construct( SGL_Registry $oData  )

Initialises context object with SGL $input object.

Parameters:
SGL_Registry   $oData: 


[ Top ]
process  [line 73]

  SGL_Context process( )

Determines context from input and returns SGL_Context object.



[ Top ]

Documentation generated on Thu, 25 Dec 2008 22:04:53 +0000 by phpDocumentor 1.4.1