Example #1
0
 public function fromSource($source)
 {
     constraint_mustBeGreaterThan($source, DataModel_Definition::SOURCE_START);
     constraint_mustBeLessThan($source, DataModel_Definition::SOURCE_END);
     $this->source = $source;
     // update the cache that Datastore_MetaRecord holds
     $oDef = DataModel_Definitions::getIfExists($this->modelName);
     $oDef->setFieldSource($this, $source);
 }
Example #2
0
 public function setStorageHint($hint)
 {
     constraint_mustBeInteger($hint);
     constraint_mustBeGreaterThan($hint, Datastore::HINT_START);
     constraint_mustBeLessThan($hint, Datastore::HINT_END);
     $this->storageHint = $hint;
 }
Example #3
0
 public function setDisplayDirection($direction)
 {
     constraint_mustBeGreaterThan($direction, Render_Table::DIRECTION_START);
     constraint_mustBeLessThan($direction, Render_Table::DIRECTION_END);
     $this->direction = $direction;
 }