private function addPropToItem()

in extensions/SMWAskAPI/api/SMWAsk_API.php [187:200]


    private function addPropToItem(&$item, $propname, $propvalues) {

        switch (sizeof($propvalues)) {
            case 0: return;
            case 1:
                if ($propvalues[0] != '') {
                    $item['properties'][$propname] = $propvalues[0]; //todo leave it as an array?
                }
                break;
            default:
                $this->getResult()->setIndexedTagName($propvalues, 'list-item');
                $item['properties'][$propname] = $propvalues;
        }
    }