BUG 0000 User Inbox Simplified (first commit)

This commit is contained in:
Erik Amaru Ortiz
2012-01-20 12:01:02 -04:00
parent 236bdd2d9c
commit 0bade635c1
32 changed files with 15523 additions and 81 deletions

View File

@@ -54,6 +54,9 @@ class headPublisher {
/* extVariable array, to store the variables generated in PHP, and used in JavaScript */
var $extVariable = array ();
/* variable array, to store the variables generated in PHP, and used in JavaScript */
var $vars = array ();
var $leimnudInitString = ' var leimnud = new maborak();
leimnud.make({
zip:true,
@@ -527,6 +530,14 @@ class headPublisher {
$this->extJsContent [] = $templateHtml;
}
function getContent() {
if (!isset($this->extJsContent[0])) {
throw new Exception('MVC Error: View template is not set!');
}
return $this->extJsContent[0];
}
/**
* Function assign
* assign a STRING value to a JS variable
@@ -540,6 +551,14 @@ class headPublisher {
$this->extVariable [] = array ('name' => $variable, 'value' => $value, 'type' => 'string' );
}
function AssignVar($name, $value) {
$this->vars [$name] = $value;
}
function getVars() {
return $this->vars;
}
/**
* Function assignNumber
* assign a Number value to a JS variable