Prado\Web\UI\ActiveControls\TCallbackClientScript::select PHP 메소드

select() 공개 메소드

The second parameter determines the selection method. Valid methods are - Value, select or check by value - Values, select or check by a list of values - Index, select or check by index (zero based index) - Indices, select or check by a list of index (zero based index) - Clear, clears or selections or checks in the list - All, select all - Invert, invert the selection.
public select ( $control, $method = 'Value', $value = null, $type = null )
    public function select($control, $method = 'Value', $value = null, $type = null)
    {
        $method = TPropertyValue::ensureEnum($method, 'Value', 'Index', 'Clear', 'Indices', 'Values', 'All', 'Invert');
        $type = $type === null ? $this->getSelectionControlType($control) : $type;
        $total = $this->getSelectionControlIsListType($control) ? $control->getItemCount() : 1;
        // pass the ID to avoid getting the surrounding elements (ISurroundable)
        if ($control instanceof TControl) {
            $control = $control->getClientID();
        }
        $this->callClientFunction('Prado.Element.select', array($control, $type . $method, $value, $total));
    }