예제 #1
0
파일: Set.php 프로젝트: skukit/mobac
 public function getHTML(Property $property, Specification $specification)
 {
     $value = $specification->getAttribute('value');
     $arr = [];
     foreach ($property->getDefaultValues() as $defaultValue) {
         if (in_array($defaultValue->getId(), $value)) {
             $arr[] = $defaultValue->getName();
         }
     }
     echo implode(', ', $arr);
 }
예제 #2
0
파일: Enum.php 프로젝트: skukit/mobac
 public function getHTML(Property $property, Specification $specification)
 {
     $out = '';
     $value = $specification->getAttribute('value');
     foreach ($property->getDefaultValues() as $defaultValue) {
         if ($defaultValue->getId() == $value) {
             $out .= $defaultValue->getName();
             break;
         }
     }
     echo $out;
 }