Interface RendererProviderInterface
Defines the renderer interface, which allows us to have various implementations (HTML, JSON, XML etc.) behind one unified interface. Use the RendererProviderFactory::getInstance() method to get instances of this.
Direct known implementers
Alpha\View\Renderer\Html\RendererProviderHTML, Alpha\View\Renderer\Json\RendererProviderJSONCopyright: Copyright (c) 2015, John Collins (founder of Alpha Framework). All rights reserved. <pre> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the Alpha Framework nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. </pre>
License: The BSD License
Author: John Collins <dev@alphaframework.org>
Since: 1.2
Located at View/Renderer/RendererProviderInterface.php
public
|
|
public
string
|
#
createView( array $fields = array() )
Renders the create view for the BO using the selected renderer. |
public
string
|
|
public
string
|
|
public
string
|
#
detailedView( array $fields = array() )
Renders the detailed read-only view for the BO using the selected renderer. |
public
string
|
|
public static
string
|
#
displayPageHead(
Renders the header content using the given renderer. |
public static
string
|
#
displayPageFoot(
Renders the footer content using the given renderer. |
public static
string
|
|
public static
string
|
|
public static
string
|
#
renderErrorPage( string $code, string $message )
Renders an error page with the supplied HTTP error code and a message. |
public static
string
|
#
renderDeleteForm( string $URI )
Method to render a hidden HTML form for posting the OID of an object to be deleted. |
public static
string
|
#
renderSecurityFields( )
Method to render a HTML form with two hidden, hashed (MD5) form fields to be used as a check to ensure that a post to the controller is being sent from the same server as hosting it. |
public
string
|
#
renderIntegerField( string $name, string $label, string $mode, string $value = '' )
Renders an Integer field value. |
public
string
|
#
renderDoubleField( string $name, string $label, string $mode, string $value = '' )
Renders an Double field value. |
public
string
|
#
renderBooleanField( string $name, string $label, string $mode, string $value = '' )
Renders an Boolean field value. |
public
string
|
#
renderEnumField( string $name, string $label, string $mode, array $options, string $value = '' )
Renders an Enum field value. |
public
string
|
#
renderDEnumField( string $name, string $label, string $mode, array $options, string $value = '' )
Renders an DEnum field value. |
public
string
|
#
renderDefaultField( string $name, string $label, string $mode, string $value = '' )
Method to render a field when type is not known. |
public
string
|
#
renderTextField( string $name, string $label, string $mode, string $value = '' )
Renders a Text field value. |
public
string
|
#
renderStringField( string $name, string $label, string $mode, string $value = '' )
Renders a String field value. |
public
string
|
#
renderRelationField( string $name, string $label, string $mode, string $value = '', boolean $expanded = false, boolean $buttons = true )
Renders a Relation field value. |
public
string
|
#
renderAllFields( string $mode, array $filterFields = array(), array $readOnlyFields = array() )
Convenience method that renders all fields for the current BO in edit/create/view mode. |