| @@ 321-335 (lines=15) @@ | ||
| 318 | * Задает popup подсказки |
|
| 319 | * @return array |
|
| 320 | */ |
|
| 321 | public function getPopupHints() |
|
| 322 | {
|
|
| 323 | if( $this->_popupHints === null ) |
|
| 324 | {
|
|
| 325 | $items = BHint::model()->findAllByAttributes( |
|
| 326 | array( |
|
| 327 | 'model' => get_class($this), |
|
| 328 | 'popup' => '1' |
|
| 329 | )); |
|
| 330 | ||
| 331 | $this->_popupHints = CHtml::listData($items, 'attribute', 'content'); |
|
| 332 | } |
|
| 333 | ||
| 334 | return $this->_popupHints; |
|
| 335 | } |
|
| 336 | ||
| 337 | /** |
|
| 338 | * Получает popup подсказку для атрибута |
|
| @@ 353-367 (lines=15) @@ | ||
| 350 | * Задает подсказки |
|
| 351 | * @return array |
|
| 352 | */ |
|
| 353 | public function getHints() |
|
| 354 | {
|
|
| 355 | if( $this->_hints === null ) |
|
| 356 | {
|
|
| 357 | $items = BHint::model()->findAllByAttributes( |
|
| 358 | array( |
|
| 359 | 'model' => get_class($this), |
|
| 360 | 'popup' => '0' |
|
| 361 | )); |
|
| 362 | ||
| 363 | $this->_hints = CHtml::listData($items, 'attribute', 'content'); |
|
| 364 | } |
|
| 365 | ||
| 366 | return $this->_hints; |
|
| 367 | } |
|
| 368 | ||
| 369 | /** |
|
| 370 | * Получает подсказку для атрибута |
|