symphony/lib/toolkit/class.author.php 1 location
|
@@ 50-61 (lines=12) @@
|
| 47 |
|
* If the field is not provided, returns the `$this->_fields` array |
| 48 |
|
* Otherwise returns a string. |
| 49 |
|
*/ |
| 50 |
|
public function get($field = null) |
| 51 |
|
{ |
| 52 |
|
if (is_null($field)) { |
| 53 |
|
return $this->_fields; |
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
if (!isset($this->_fields[$field]) || $this->_fields[$field] === '') { |
| 57 |
|
return null; |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
return $this->_fields[$field]; |
| 61 |
|
} |
| 62 |
|
|
| 63 |
|
/** |
| 64 |
|
* Returns boolean if the current Author is of the developer |
symphony/lib/toolkit/class.entry.php 1 location
|
@@ 129-140 (lines=12) @@
|
| 126 |
|
* was omitted or null if the setting was supplied but there is no value |
| 127 |
|
* for that setting. |
| 128 |
|
*/ |
| 129 |
|
public function get($setting = null) |
| 130 |
|
{ |
| 131 |
|
if (is_null($setting)) { |
| 132 |
|
return $this->_fields; |
| 133 |
|
} |
| 134 |
|
|
| 135 |
|
if (!isset($this->_fields[$setting])) { |
| 136 |
|
return null; |
| 137 |
|
} |
| 138 |
|
|
| 139 |
|
return $this->_fields[$setting]; |
| 140 |
|
} |
| 141 |
|
|
| 142 |
|
/** |
| 143 |
|
* Creates the initial entry row in tbl_entries and returns the resulting |
symphony/lib/toolkit/class.field.php 1 location
|
@@ 462-473 (lines=12) @@
|
| 459 |
|
* was omitted or null if the setting was supplied but there is no value |
| 460 |
|
* for that setting. |
| 461 |
|
*/ |
| 462 |
|
public function get($setting = null) |
| 463 |
|
{ |
| 464 |
|
if (is_null($setting)) { |
| 465 |
|
return $this->_settings; |
| 466 |
|
} |
| 467 |
|
|
| 468 |
|
if (!isset($this->_settings[$setting])) { |
| 469 |
|
return null; |
| 470 |
|
} |
| 471 |
|
|
| 472 |
|
return $this->_settings[$setting]; |
| 473 |
|
} |
| 474 |
|
|
| 475 |
|
/** |
| 476 |
|
* Accessor to the name of this field object. The name may contain characters |