public function setPerson(Person $o) { parent::setForeignKeyObject(__NAMESPACE__ . '\\Person', 'person_id', $o); }
public function setName($s) { parent::set('name', $s); }
public function setDescription($s) { parent::set('description', $s); }
public function getId() { return parent::get('id'); }
public function setContactMethod(ContactMethod $o) { parent::setForeignKeyObject(__NAMESPACE__ . '\\ContactMethod', 'contactMethod_id', $o); }
public function setAggregation($o) { parent::setForeignKeyObject(__NAMESPACE__ . '\\Aggregation', 'aggregation_id', $o); }
public function isDefault() { return parent::get('isDefault') ? true : false; }
public function setTestModel(TestModel $o) { parent::setForeignKeyObject('TestModel', 'foreignkey_id', $o); }
/** * @return array */ public function getAdditionalFields() { $s = parent::get('additionalFields'); if (!$s) { $s = '{}'; } return json_decode($s); }
public function setOrdering($s) { parent::set('ordering', $s); }
public function setAuthenticationMethod($s) { parent::set('authenticationMethod', $s); }
/** * 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; }
public function setLongitude($f) { parent::set('longitude', (double) $f); }
public function setIssue(Issue $o) { parent::setForeignKeyObject(__NAMESPACE__ . '\\Issue', 'issue_id', $o); }
public function setDefaultPerson(Person $p) { parent::setForeignKeyObject(__NAMESPACE__ . '\\Person', 'defaultPerson_id', $p); }
/** * 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')); }
public function setUsedForNotifications($b) { parent::set('usedForNotifications', $b ? 1 : 0); }