Esempio n. 1
0
 /**
  * Create the data map
  *
  * @return \Tk\Model\DataMap
  */
 protected function makeDataMap()
 {
     $dataMap = new \Tk\Model\DataMap(__CLASS__);
     $this->setTable('coaSetup');
     $dataMap->addIdProperty(\Tk\Model\Map\Integer::create('id'));
     $dataMap->addProperty(\Tk\Model\Map\Integer::create('courseId'));
     $dataMap->addProperty(\Tk\Model\Map\String::create('name'));
     $dataMap->addProperty(\Tk\Model\Map\String::create('pdfTopMargin'));
     $dataMap->addProperty(\Tk\Model\Map\String::create('pdfBgImage'));
     $dataMap->addProperty(\Tk\Model\Map\String::create('pdfContent'));
     $dataMap->addProperty(\Tk\Model\Map\String::create('emailSubject'));
     $dataMap->addProperty(\Tk\Model\Map\String::create('emailContent'));
     $dataMap->addProperty(\Tk\Model\Map\Date::create('modified'));
     $dataMap->addProperty(\Tk\Model\Map\Date::create('created'));
     return $dataMap;
 }
Esempio n. 2
0
 /**
  * Create the data map
  *
  * @return \Tk\Model\DataMap
  */
 protected function makeDataMap()
 {
     $dataMap = new \Tk\Model\DataMap(__CLASS__);
     $this->setTable('ltiConsumer');
     $dataMap->addIdProperty(\Tk\Model\Map\Integer::create('id'));
     $dataMap->addProperty(\Tk\Model\Map\String::create('consumerKey'));
     $dataMap->addProperty(\Tk\Model\Map\String::create('name'));
     $dataMap->addProperty(\Tk\Model\Map\String::create('secret'));
     $dataMap->addProperty(\Tk\Model\Map\String::create('ltiVersion'));
     $dataMap->addProperty(\Tk\Model\Map\String::create('consumerName'));
     $dataMap->addProperty(\Tk\Model\Map\String::create('consumerVersion'));
     $dataMap->addProperty(\Tk\Model\Map\String::create('consumerGuid'));
     $dataMap->addProperty(\Tk\Model\Map\String::create('cssPath'));
     $dataMap->addProperty(\Tk\Model\Map\Boolean::create('protected'));
     $dataMap->addProperty(\Tk\Model\Map\Boolean::create('enabled'));
     $dataMap->addProperty(\Tk\Model\Map\Date::create('enabledFrom'));
     $dataMap->addProperty(\Tk\Model\Map\Date::create('enabledTo'));
     $dataMap->addProperty(\Tk\Model\Map\Date::create('lastAccess'));
     $dataMap->addProperty(\Tk\Model\Map\Date::create('modified'));
     $dataMap->addProperty(\Tk\Model\Map\Date::create('created'));
     return $dataMap;
 }