ZMObject
|
+--ZMView
public class ZMView
extends ZMObject
| Field Summary | |
|---|---|
| protected mixed | |
| protected mixed | |
| protected mixed | |
| protected mixed | |
| Fields inherited from org.zenmagick.ZMObject | |
|---|---|
| properties_ | |
| Constructor Summary | |
|---|---|
ZMView(string view, mixed viewId, string mapping) Create new view for the given view name and id. |
|
| Method Summary | |
|---|---|
| boolean | callView() Call the function that generates the view contents. |
| void | generate() Generate view response. |
| string | Get the content type. |
| ZMController | Get the controller for this view. |
| string | Get the character encoding. |
| string | getName() Return the view name. |
| subdir | Get optional subdir. |
| string | getView() Get the view. |
| string | Returns the full view filename to be included by a template. |
| string | Get the view id. |
| boolean | isValid() Check if this view is valid. |
| boolean | Check if the response is generated by a function or file. |
| void | setController(mixed controller, controller ZMController) Set the controller for this view. |
| void | setName(string name) Set the view name. |
| void | setSubdir(string subdir) Set an optional subdir. |
| void | setView(string view) Set the view. |
| void | setViewId(string viewId) Set the view id. |
| Methods inherited from org.zenmagick.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
protected mixed $controller_
protected mixed $subdir_
protected mixed $viewId_
protected mixed $view_
public ZMView(string view, mixed viewId, string mapping)
Create new view for the given view name and id.
public boolean callView()
Call the function that generates the view contents.
true if the view was generated using a function.public void generate()
Generate view response. /
public string getContentType()
Get the content type.
public ZMController getController()
Get the controller for this view.
public string getEncoding()
Get the character encoding.
public string getName()
Return the view name.
public subdir getSubdir()
Get optional subdir.
public string getView()
Get the view.
public string getViewFilename()
Returns the full view filename to be included by a template.
public string getViewId()
Get the view id.
public boolean isValid()
Check if this view is valid.
true if the view is valid, false if not.public boolean isViewFunction()
Check if the response is generated by a function or file.
true if the view content is generated
* by a function, false if not.public void setController(mixed controller, controller ZMController)
Set the controller for this view.
public void setName(string name)
Set the view name.
public void setSubdir(string subdir)
Set an optional subdir.
public void setView(string view)
Set the view.
public void setViewId(string viewId)
Set the view id.
A view.