ExampleForm::tnvExample_Change PHP 메소드

tnvExample_Change() 보호된 메소드

protected tnvExample_Change ( $strFormId, $strControlId, $strParameter )
    protected function tnvExample_Change($strFormId, $strControlId, $strParameter)
    {
        $objItem = $this->tnvExample->SelectedItem;
        if (is_dir($this->tnvExample->SelectedValue)) {
            $this->pnlCode->Text = 'Current directory is <b>' . $this->tnvExample->SelectedItem->Name . '</b>.  ' . 'Please select a file on the left';
        } else {
            $strCode = highlight_file($this->tnvExample->SelectedValue, true);
            $this->pnlCode->Text = $strCode;
        }
    }