PMA\libraries\Index::isUnique PHP Метод

isUnique() публичный Метод

Returns whether the index is a 'Unique' index
public isUnique ( boolean $as_text = false ) : mixed
$as_text boolean whether to output should be in text
Результат mixed whether the index is a 'Unique' index
    public function isUnique($as_text = false)
    {
        if ($as_text) {
            $r = array('0' => __('Yes'), '1' => __('No'));
        } else {
            $r = array('0' => true, '1' => false);
        }
        return $r[$this->_non_unique];
    }