| @@ 54-60 (lines=7) @@ | ||
| 51 | * |
|
| 52 | * @return ContactGroup |
|
| 53 | */ |
|
| 54 | public static function getByKey($key) |
|
| 55 | {
|
|
| 56 | if( empty(self::$groups[$key]) ) |
|
| 57 | self::$groups[$key] = self::model()->findByAttributes(array('sysname' => $key));
|
|
| 58 | ||
| 59 | return self::$groups[$key]; |
|
| 60 | } |
|
| 61 | } |
|
| @@ 18-24 (lines=7) @@ | ||
| 15 | return '{{contact_textblock}}';
|
|
| 16 | } |
|
| 17 | ||
| 18 | public static function getByKey($key) |
|
| 19 | {
|
|
| 20 | if( empty(self::$textblocks[$key]) ) |
|
| 21 | self::$textblocks[$key] = self::model()->findByAttributes(array('sysname' => $key));
|
|
| 22 | ||
| 23 | return self::$textblocks[$key]; |
|
| 24 | } |
|
| 25 | } |
|