Example #1
0
 static function load($ID)
 {
     $data = ReadWrite::load('LanguageItems', $ID, array('ID', 'Name', 'Position', 'Scope', 'Type'), array('ID', 'Text', 'Position', 'Scope', 'Type'));
     return new LanguageItem($data['Text'], $data['Scope'], $data['Position'], $data['Type'], $data['ID']);
 }
Example #2
0
 static function load($ID)
 {
     $data = ReadWrite::load("Types", $ID, array("ID", "Name", "Example"), array("ID", "Name", "Example"));
     return new WordType($data['Name'], $data['Example'], $data['ID']);
 }
Example #3
0
 static function load($ID)
 {
     $data = ReadWrite::load('Responses', $ID, array("ID", "Rating", "Scope"), array("ID", "Rating", "Scope"));
     return new Response($data['Rating'], $data['Scope'], $data['ID']);
 }
Example #4
0
 static function load($ID)
 {
     $data = ReadWrite::load("ResponseItems", $ID, array("ID", "ResponseId", "LanguageItemId"), array("ID", "ResponseId", "LanguageItemId"));
     return new ResponseItem($data['ResponseId'], $data['LanguageItemId'], $data['ID']);
 }