@@ -64,6 +64,9 @@ discard block |
||
| 64 | 64 | parent::__set($field, $value); |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | + /** |
|
| 68 | + * @param string $field |
|
| 69 | + */ |
|
| 67 | 70 | public function __get($field) |
| 68 | 71 | { |
| 69 | 72 | if ( $field === 'metadata' |
@@ -111,6 +114,9 @@ discard block |
||
| 111 | 114 | return null; |
| 112 | 115 | } |
| 113 | 116 | |
| 117 | + /** |
|
| 118 | + * @param integer $id |
|
| 119 | + */ |
|
| 114 | 120 | public function get_by_id($id) |
| 115 | 121 | { |
| 116 | 122 | $entity = connection::get_em()->find(get_class($this), $id); |
@@ -151,6 +157,9 @@ discard block |
||
| 151 | 157 | return true; |
| 152 | 158 | } |
| 153 | 159 | |
| 160 | + /** |
|
| 161 | + * @param string $guid |
|
| 162 | + */ |
|
| 154 | 163 | public function get_by_guid($guid) |
| 155 | 164 | { |
| 156 | 165 | if (!mgd_is_guid($guid)) |
@@ -526,7 +535,8 @@ discard block |
||
| 526 | 535 | } |
| 527 | 536 | |
| 528 | 537 | /** |
| 529 | - * @return int |
|
| 538 | + * @param integer $up |
|
| 539 | + * @return \Doctrine\ORM\QueryBuilder |
|
| 530 | 540 | */ |
| 531 | 541 | protected function get_uniquefield_query($classname, $field, $part, $upfield, $up) |
| 532 | 542 | { |
@@ -619,6 +629,9 @@ discard block |
||
| 619 | 629 | } |
| 620 | 630 | } |
| 621 | 631 | |
| 632 | + /** |
|
| 633 | + * @param string $value |
|
| 634 | + */ |
|
| 622 | 635 | public function set_parameter($domain, $name, $value) |
| 623 | 636 | { |
| 624 | 637 | $constraints = array |
@@ -712,7 +725,7 @@ discard block |
||
| 712 | 725 | * |
| 713 | 726 | * @param array $constraints |
| 714 | 727 | * @param boolean $delete_blob |
| 715 | - * @return boolean False if one or more attachments couldn't be deleted |
|
| 728 | + * @return integer False if one or more attachments couldn't be deleted |
|
| 716 | 729 | * @todo Implement delete_blob & return value |
| 717 | 730 | */ |
| 718 | 731 | public function purge_attachments(array $constraints = array(), $delete_blob = true) |
@@ -817,6 +830,9 @@ discard block |
||
| 817 | 830 | return new \midgard_reflection_property(get_called_class()); |
| 818 | 831 | } |
| 819 | 832 | |
| 833 | + /** |
|
| 834 | + * @param string $guid |
|
| 835 | + */ |
|
| 820 | 836 | public function set_guid($guid) |
| 821 | 837 | { |
| 822 | 838 | parent::__set('guid', $guid); |