Пример #1
0
 public function setPerson(Person $o)
 {
     parent::setForeignKeyObject(__NAMESPACE__ . '\\Person', 'person_id', $o);
 }
Пример #2
0
 public function setName($s)
 {
     parent::set('name', $s);
 }
Пример #3
0
 public function setDescription($s)
 {
     parent::set('description', $s);
 }
 public function getId()
 {
     return parent::get('id');
 }
Пример #5
0
 public function setContactMethod(ContactMethod $o)
 {
     parent::setForeignKeyObject(__NAMESPACE__ . '\\ContactMethod', 'contactMethod_id', $o);
 }
 public function setAggregation($o)
 {
     parent::setForeignKeyObject(__NAMESPACE__ . '\\Aggregation', 'aggregation_id', $o);
 }
Пример #7
0
 public function isDefault()
 {
     return parent::get('isDefault') ? true : false;
 }
 public function setTestModel(TestModel $o)
 {
     parent::setForeignKeyObject('TestModel', 'foreignkey_id', $o);
 }
Пример #9
0
 /**
  * @return array
  */
 public function getAdditionalFields()
 {
     $s = parent::get('additionalFields');
     if (!$s) {
         $s = '{}';
     }
     return json_decode($s);
 }
Пример #10
0
 public function setOrdering($s)
 {
     parent::set('ordering', $s);
 }
Пример #11
0
 public function setAuthenticationMethod($s)
 {
     parent::set('authenticationMethod', $s);
 }
Пример #12
0
 /**
  * Returns the file name used on the server
  *
  * We do not use the filename the user chose when saving the files.
  * We generate a unique filename the first time the filename is needed.
  * This filename will be saved in the database whenever this media is
  * finally saved.
  *
  * @return string
  */
 public function getInternalFilename()
 {
     $filename = parent::get('internalFilename');
     if (!$filename) {
         $filename = uniqid();
         parent::set('internalFilename', $filename);
     }
     return $filename;
 }
Пример #13
0
 public function setLongitude($f)
 {
     parent::set('longitude', (double) $f);
 }
Пример #14
0
 public function setIssue(Issue $o)
 {
     parent::setForeignKeyObject(__NAMESPACE__ . '\\Issue', 'issue_id', $o);
 }
Пример #15
0
 public function setDefaultPerson(Person $p)
 {
     parent::setForeignKeyObject(__NAMESPACE__ . '\\Person', 'defaultPerson_id', $p);
 }
Пример #16
0
 /**
  * Returns a PHP array representing the description of custom fields
  *
  * The category holds the description of the custom fields desired
  * $customFields = array(
  *		array('name'=>'','type'=>'','label'=>'','values'=>array())
  * )
  * Name and Label are required.
  * Anything without a type will be rendered as type='text'
  * If type is select, radio, or checkbox, you must provide values
  *		for the user to choose from
  *
  * @return array
  */
 public function getCustomFields()
 {
     return json_decode(parent::get('customFields'));
 }
Пример #17
0
 public function setUsedForNotifications($b)
 {
     parent::set('usedForNotifications', $b ? 1 : 0);
 }