| @@ 126-136 (lines=11) @@ | ||
| 123 | * @casted |
|
| 124 | * @return Str |
|
| 125 | */ |
|
| 126 | public function getCopyCause() |
|
| 127 | { |
|
| 128 | $className = $this->CopyCausingClassName; |
|
| 129 | if ($className) { |
|
| 130 | $obj = $className::get()->byID($this->CopyCausingClassNameID); |
|
| 131 | if ($obj) { |
|
| 132 | return CopyFactory::title_for_object($obj)." (".$className.")"; |
|
| 133 | } |
|
| 134 | } |
|
| 135 | return _t("CopyFactory.N_A", "n/a"); |
|
| 136 | } |
|
| 137 | ||
| 138 | /** |
|
| 139 | * Copy From Description |
|
| @@ 143-153 (lines=11) @@ | ||
| 140 | * @casted |
|
| 141 | * @return Str |
|
| 142 | */ |
|
| 143 | public function getCopyFrom() |
|
| 144 | { |
|
| 145 | $className = $this->CopyIntoClassName; |
|
| 146 | if ($className) { |
|
| 147 | $obj = $className::get()->byID($this->CopyFromClassNameID); |
|
| 148 | if ($obj) { |
|
| 149 | return CopyFactory::title_for_object($obj)." (".$className.")"; |
|
| 150 | } |
|
| 151 | } |
|
| 152 | return _t("CopyFactory.N_A", "n/a"); |
|
| 153 | } |
|
| 154 | ||
| 155 | /** |
|
| 156 | * Copy Into Description |
|
| @@ 160-170 (lines=11) @@ | ||
| 157 | * @casted |
|
| 158 | * @return Str |
|
| 159 | */ |
|
| 160 | public function getCopyInto() |
|
| 161 | { |
|
| 162 | $className = $this->CopyIntoClassName; |
|
| 163 | if ($className) { |
|
| 164 | $obj = $className::get()->byID($this->CopyIntoClassNameID); |
|
| 165 | if ($obj) { |
|
| 166 | return CopyFactory::title_for_object($obj)." (".$className.")"; |
|
| 167 | } |
|
| 168 | } |
|
| 169 | return _t("CopyFactory.N_A", "n/a"); |
|
| 170 | } |
|
| 171 | ||
| 172 | ||
| 173 | /** |
|