コード例 #1
0
 /**
  * @param string $var
  * @return mixed value
  */
 protected function __get($var)
 {
     switch ($var) {
         case 'publishedMin':
             $var = 'published-min';
             break;
         case 'publishedMax':
             $var = 'published-max';
             break;
         case 'blogName':
             $var = '_blogName';
             break;
         default:
             break;
     }
     return parent::__get($var);
 }
コード例 #2
0
 protected function __get($var)
 {
     switch ($var) {
         case 'startMin':
             $var = 'start-min';
             break;
         case 'startMax':
             $var = 'start-max';
             break;
         case 'visibility':
             $var = '_visibility';
             break;
         case 'projection':
             $var = '_projection';
             break;
         case 'user':
             $var = '_user';
             break;
         case 'event':
             $var = '_event';
             break;
         case 'comments':
             $var = '_comments';
             break;
         default:
             break;
     }
     return parent::__get($var);
 }
コード例 #3
0
 /**
  * @param string $var
  * @return mixed value
  */
 protected function __get($var)
 {
     switch ($var) {
         case 'query':
             $var = 'bq';
             break;
         case 'category':
             $var = '_category';
             break;
         default:
             // other params are handled by the parent
             break;
     }
     return parent::__get($var);
 }