Creates a PanelHeading object, adds it by default to the content stack and returns a reference on it

@param string $autoadd
Optional flag to dis-/enable autoadd of created object to the content stack
433615
public function &createFooter($autoadd = true)
    {
        $footer = new PanelFooter();
        if ($autoadd) {
            $this->content[] = $footer;
        }
        return $footer;
    }
196159
public function makeAddDebug(){
		$s = "";
		foreach ($this->headers as $code){
			$s .= '$( document ).ready(function() {'."\n";
			$s .= $code;
			$s .= "\n});\n\n";
		}
		return $s;
	}
1124774
function(elHdTable, elTable) {
    elHdTable = elHdTable || this._elHdTable;
    elTable = elTable || this._elTable;
    
    // Scrolling body's THEAD
    this._initBdTheadEl(elTable);
    // Standard fixed head THEAD
    SDT.superclass._initTheadEl.call(this, elHdTable);
}
1346105
protected function autoAddItems()
    {
        if ($this->config->get('crumbs.display_both_pages')) {
            $this->addHomePage();

            if ($this->request->is($this->config->get('crumbs.admin_pattern'))) {
                $this->addAdminPage();
            }
        } else {
            if ($this->config->get('crumbs.display_home_page') && !$this->request->is($this->config->get('crumbs.admin_pattern'))) {
                $this->addHomePage();
            }
            if ($this->config->get('crumbs.display_admin_page') && $this->request->is($this->config->get('crumbs.admin_pattern'))) {
                $this->addAdminPage();
            }
        }
    }
448205
public function head($include = null)
    {
        if (null === $include) {
            $include = $this->defaults;
        }

        $include = (array) $include;

        $this->process($include);

        return "\n"
            . ( in_array(self::METAS, $include)   ? $this->metas() : '')
            . ( in_array(self::TITLE, $include)   ? $this->title() : '')
            . ( in_array(self::LINKS, $include)   ? $this->links() : '')
            . ( in_array(self::STYLES, $include)  ? $this->styles() : '')
            . ( in_array(self::SCRIPTS, $include) ? $this->scripts() : '')
            ;
    }
391394
public function autocomplete($attachTo=NULL, $params=NULL) {
		return $this->addComponent(new Autocomplete($this->js), $attachTo, $params);
	}
793839
function handleHeader($level) {
    static $id = null;
    if ($this->parser->isStartTag) {
      if (isset($this->parser->tagAttributes['id'])) {
        $id = $this->parser->tagAttributes['id'];
      }
    } else {
      if (!is_null($id)) {
        $this->out(' {#'.$id.'}');
        $id = null;
      }
    }
    parent::handleHeader($level);
  }
1127932
public function addPanelFacetAction(Facet $facet)
    {
        $form = $this->formFactory->create(new PanelFacetType(), new PanelFacet());
        $form->handleRequest($this->request);

        if ($form->isValid()) {
            $panel = $this->facetManager->addPanel(
                $facet,
                $form->get('name')->getData(),
                $form->get('isDefaultCollapsed')->getData()
            );

            return new JsonResponse(
                array(
                    'id' => $panel->getId(),
                    'name' => $panel->getName(),
                    'facet_id' => $facet->getId()
                )
            );
        }

        return $this->render(
            'ClarolineCoreBundle:Administration\Facet:panelFacetForm.html.twig',
            array('form' => $form->createView(), 'facet' => $facet)
        );
    }
115325
public function displayPublishPanel(XMLElement &$wrapper, $data = null, $flagWithError = null, $fieldnamePrefix = null, $fieldnamePostfix = null, $entry_id = null)
    {
        if (!$data) {
            // TODO: Don't rely on $_POST
            if (isset($_POST) && !empty($_POST)) {
                $value = 'no';
            } elseif ($this->get('default_state') == 'on') {
                $value = 'yes';
            } else {
                $value = 'no';
            }
        } else {
            $value = ($data['value'] === 'yes' ? 'yes' : 'no');
        }

        $label = Widget::Label();

        if ($this->get('required') !== 'yes') {
            $label->appendChild(new XMLElement('i', __('Optional')));
        }

        $input = Widget::Input('fields'.$fieldnamePrefix.'['.$this->get('element_name').']'.$fieldnamePostfix, 'yes', 'checkbox', ($value === 'yes' ? array('checked' => 'checked') : null));

        $label->setValue($input->generate(false) . ' ' . $this->get('label'));

        if ($flagWithError != null) {
            $wrapper->appendChild(Widget::Error($label, $flagWithError));
        } else {
            $wrapper->appendChild($label);
        }
    }
961414
public function editPanelFacetFormAction(PanelFacet $panelFacet)
    {
        $form = $this->formFactory->create(new PanelFacetType(), $panelFacet);

        return array('form' => $form->createView(), 'panelFacet' => $panelFacet);
    }
345224
public function createHeaderNode(array $options = array())
    {
        $node = new MenuNode();
        $node->type = MenuNode::TYPE_HEADER;

        if (isset($options['label'])) {
            $node->label = $options['label'];
        }

        if (isset($options['translate_label'])) {
            $node->translateLabel = $options['translate_label'];
        }

        if (isset($options['roles'])) {
            $node->roles = ArrayUtils::to_array($options['roles']);
        }

        return $node;
    }
1118037
public void addHeader (@Nonnull @Nonempty final String sName, @Nullable final String sValue)
  {
    if (sValue != null)
      _addHeader (sName, sValue);
  }
1328383
public function createAddon($node = null, $position = Group\AddOn::ADDON_LEFT)
    {
        $addOn = new Group\AddOn($position);

        if (isset($node)) {
            if ($node instanceof Element) {
                $addOn->childNodes->push($node);
            } else {
                $addOn->textContent->push($node);
            }
        }

        $this->addOns->push($addOn);

        return $this->addOns->last();
    }
881335
public function addHeader()
    {
        if (ord($this->BUF[0]{10}) & 0x80) {
            $cmap = 3 * (2 << (ord($this->BUF[0]{10}) & 0x07));
            $this->GIF .= substr($this->BUF[0], 6, 7);
            $this->GIF .= substr($this->BUF[0], 13, $cmap);
            $this->GIF .= "!\377\13NETSCAPE2.0\3\1" . $this->word($this->LOP) . "\0";
        }
    }
232523
public function addDefaultHeaders($headers)
    {
        foreach ($headers as $name => $value) {
            $this->addDefaultHeader($name, $value);
        }

        return $this;
    }
517376
protected function createComponentPageAddModal() : object
    {
        $control = $this->IPage_AddModal->create();

        $control->onOpen[] = function () use ($control)
        {
            $control->redrawControl('pageAddForm');
        };

        return $control;
    }
694462
protected function createComponentUserAddModal() : object
    {
        $control = $this->IUser_AddModal->create();

        $control->onSave[] = function () use ($control)
        {
            $this->getComponent('userSummaryModal')->redrawControl('users');
            $control->redrawControl('addForm');
        };

        return $control;
    }