behaviors/TbWidget.php
public function resolveId($id = null)
    {
        if ($id === null) {
            $id = $this->owner->getId();
        }
        if (isset($this->owner->htmlOptions['id'])) {
            $id = $this->owner->htmlOptions['id'];
        } else {
            $this->owner->htmlOptions['id'] = $id;
        }
        return $id;
    }
public function resolveId($id = null)
    {
        if ($id === null) {
            $id = $this->owner->getId();
        }
        if (isset($this->owner->htmlOptions['id'])) {
            $id = $this->owner->htmlOptions['id'];
        } else {
            $this->owner->htmlOptions['id'] = $id;
        }
        return $id;
    }
public function resolveId ( $ id = null ) { if ( $ id === null ) { $ id = $ this -> owner -> getId ( ) ; } if ( isset ( $ this -> owner -> htmlOptions [ 'id' ] ) ) { $ id = $ this -> owner -> htmlOptions [ 'id' ] ; } else { $ this -> owner -> htmlOptions [ 'id' ] = $ id ; } return $ id ; }
Returns the widget id and copies it to HTML attributes or vice versa.
@param string $id the widget id.
@return string the widget id.
Returns the widget id and copies it to HTML attributes or vice versa .