Swat/SwatCheckboxEntryList.php
protected function getInlineJavaScript()
    {
        $javascript = sprintf(
            "var %s_obj = new SwatCheckboxEntryList('%s');",
            $this->id,
            $this->id
        );

        // set check-all controller if it is visible
        if ($this->show_check_all && count($this->getOptions()) > 1) {
            $javascript .= sprintf(
                "\n%s_obj.setController(%s_obj);",
                $this->getCompositeWidget('check_all')->id,
                $this->id
            );
        }

        return $javascript;
    }
protected function getInlineJavaScript()
    {
        $javascript = sprintf(
            "var %s_obj = new SwatCheckboxEntryList('%s');",
            $this->id,
            $this->id
        );

        // set check-all controller if it is visible
        if ($this->show_check_all && count($this->getOptions()) > 1) {
            $javascript .= sprintf(
                "\n%s_obj.setController(%s_obj);",
                $this->getCompositeWidget('check_all')->id,
                $this->id
            );
        }

        return $javascript;
    }
protected function getInlineJavaScript ( ) { $ javascript = sprintf ( "var %s_obj = new SwatCheckboxEntryList('%s');" , $ this -> id , $ this -> id ) ; // set check-all controller if it is visible if ( $ this -> show_check_all && count ( $ this -> getOptions ( ) ) > 1 ) { $ javascript .= sprintf ( "\n%s_obj.setController(%s_obj);" , $ this -> getCompositeWidget ( 'check_all' ) -> id , $ this -> id ) ; } return $ javascript ; }
Gets the inline JavaScript for this checkbox entry list

@return string the inline JavaScript for this checkbox entry list.
Gets the inline JavaScript for this checkbox entry list