API > eden > block.php
View Source

abstract class Eden_Block

Base class for any class that defines an output block. A block is a default and customizable piece of output.

Public Methods

abstract public function getTemplate();

returns location of template file

Returns string

abstract public function getVariables();

returns variables used for templating

Returns array

public function render()

Transform block to string

Arguments

  1. array

Returns string

public function setBlockRoot($root)

For one file Eden, you can set the default location of Eden's template to another location.

Arguments

  1. string

Returns this


© 2012 Openovate Labs. All rights reserved.