예제 #1
0
파일: QuizPlugin.php 프로젝트: wzur/server
 public static function getDynamicAttributes(IIndexable $object)
 {
     if ($object instanceof entry) {
         if (!is_null($object->getFromCustomData(self::QUIZ_DATA))) {
             return array(self::getDynamicAttributeName() => 1);
         }
     }
     return array();
 }
예제 #2
0
 public static function getDynamicAttributes(IIndexable $object)
 {
     if ($object instanceof entry) {
         $isQuiz = 0;
         if (!is_null($object->getFromCustomData(self::QUIZ_DATA))) {
             $isQuiz = 1;
         }
         $dynamicAttribute = array(self::getDynamicAttributeName() => $isQuiz);
         return $dynamicAttribute;
     }
     return array();
 }