src/FlexiPeeHP/Stitek.php
public static function getAvailbleLabels($object)
    {
        $labels         = [];
        $evidenceBackup = $object->getEvidence();
        $object->setEvidence('stitek');
        $pathToVsb      = array_flip(self::$vsbToEvidencePath);

        if (array_key_exists($evidenceBackup, $pathToVsb)) {
            $labelsRaw = $object->getColumnsFromFlexiBee(['kod', 'nazev'],
                [$pathToVsb[$evidenceBackup] => true], 'nazev');
            if (count($labelsRaw)) {
                foreach ($labelsRaw as $labelInfo) {
                    $labels[$labelInfo['kod']] = $labelInfo['nazev'];
                }
            }
        }

        $object->setEvidence($evidenceBackup);
        return $labels;
    }
public static function getAvailbleLabels($object)
    {
        $labels         = [];
        $evidenceBackup = $object->getEvidence();
        $object->setEvidence('stitek');
        $pathToVsb      = array_flip(self::$vsbToEvidencePath);

        if (array_key_exists($evidenceBackup, $pathToVsb)) {
            $labelsRaw = $object->getColumnsFromFlexiBee(['kod', 'nazev'],
                [$pathToVsb[$evidenceBackup] => true], 'nazev');
            if (count($labelsRaw)) {
                foreach ($labelsRaw as $labelInfo) {
                    $labels[$labelInfo['kod']] = $labelInfo['nazev'];
                }
            }
        }

        $object->setEvidence($evidenceBackup);
        return $labels;
    }
public static function getAvailbleLabels ( $ object ) { $ labels = [ ] ; $ evidenceBackup = $ object -> getEvidence ( ) ; $ object -> setEvidence ( 'stitek' ) ; $ pathToVsb = array_flip ( self :: $ vsbToEvidencePath ) ; if ( array_key_exists ( $ evidenceBackup , $ pathToVsb ) ) { $ labelsRaw = $ object -> getColumnsFromFlexiBee ( [ 'kod' , 'nazev' ] , [ $ pathToVsb [ $ evidenceBackup ] => true ] , 'nazev' ) ; if ( count ( $ labelsRaw ) ) { foreach ( $ labelsRaw as $ labelInfo ) { $ labels [ $ labelInfo [ 'kod' ] ] = $ labelInfo [ 'nazev' ] ; } } } $ object -> setEvidence ( $ evidenceBackup ) ; return $ labels ; }
Obtain list of availble labels for given object

@param FlexiBeeRO $object

@return array
Obtain list of availble labels for given object