* This simply throws the ApiException if it exists, which inside holds
* all of the individual and specific errors
*/
- private function _processErrorQueue()
+ protected function _processErrorQueue()
{
if ($this->exception)
{
/**
* Verifies that all required fields are set
*/
- private function _verifyRequired()
+ protected function _verifyRequired()
{
foreach ($this->fields as $name => $options)
{
* @param string Action to run
* @param bool Actually run it?
*/
- private function _runActionMethod($method, $doRun)
+ protected function _runActionMethod($method, $doRun)
{
if (!$doRun || !method_exists($this, $method))
{
*
* @return string Prepared value entry
*/
- private function _prepareFieldForSql($name)
+ protected function _prepareFieldForSql($name)
{
$type = $this->fields["$name"][F_TYPE];
* The path, from the path of the application, where templates are stored
* @var string
*/
- private $templateDir = '';
+ protected $templateDir = '';
/**
* The extension all the template files have
* @var string
*/
- private $extension = 'tpl';
+ protected $extension = 'tpl';
/**
* The database table name for the template cache
* @var string
*/
- private $dbCacheTable = null;
+ protected $dbCacheTable = null;
/**
* The name of the function phrases are fetched with
* @var string
*/
- private $langcall = 'gettext';
+ public $langcall = 'gettext';
/**
* The name of the function phrases are sprintf() parsed with
* @var string
*/
- private $langconst = 'sprintf';
+ public $langconst = 'sprintf';
/**
* Array of pre-compiled templates that are stored to decrease server load
* Whether or not the page has been flush()'d already
* @var bool
*/
- private $doneflush = false;
+ protected $doneflush = false;
/**
* The name of a function that is called before template parsing of phrases and conditionals occurs
* @var string
*/
- private $preParseHook = ':undefined:';
+ protected $preParseHook = ':undefined:';
/**
* Sets the template directory name
*
* @return string Parsed template data
*/
- private function _parseBlocksAndTokens($template)
+ protected function _parseBlocksAndTokens($template)
{
$stack = array();
$tokens = array();
*
* @return string Parsed value
*/
- private function _parseToken($token)
+ protected function _parseToken($token)
{
// knock of the braces
$token = substr($token, 1, strlen($token) - 2);
*
* @return string Language-ready template data
*/
- private function _parsePhrases($template)
+ protected function _parsePhrases($template)
{
$tagStart = '<lang ';
$tagEnd = '</lang>';
*
* @return string Parsed template data
*/
- private function _parseConditionals($template)
+ protected function _parseConditionals($template)
{
// tag data
$tag_start = '<if condition=\"';