Backend\Core\Installer\ModuleInstaller::insertMeta PHP Method

insertMeta() protected method

Insert a meta item
protected insertMeta ( string $keywords, string $description, string $title, string $url, boolean $keywordsOverwrite = false, boolean $descriptionOverwrite = false, boolean $titleOverwrite = false, boolean $urlOverwrite = false, string $custom = null, array $data = null ) : integer
$keywords string The keyword of the item.
$description string A description of the item.
$title string The page title for the item.
$url string The unique URL.
$keywordsOverwrite boolean Should the keywords be overwritten?
$descriptionOverwrite boolean Should the descriptions be overwritten?
$titleOverwrite boolean Should the page title be overwritten?
$urlOverwrite boolean Should the URL be overwritten?
$custom string Any custom meta-data.
$data array Any custom meta-data.
return integer
    protected function insertMeta($keywords, $description, $title, $url, $keywordsOverwrite = false, $descriptionOverwrite = false, $titleOverwrite = false, $urlOverwrite = false, $custom = null, $data = null)
    {
        $item = array('keywords' => (string) $keywords, 'keywords_overwrite' => $keywordsOverwrite && $keywordsOverwrite !== 'N' ? 'Y' : 'N', 'description' => (string) $description, 'description_overwrite' => $descriptionOverwrite && $descriptionOverwrite !== 'N' ? 'Y' : 'N', 'title' => (string) $title, 'title_overwrite' => $titleOverwrite && $titleOverwrite !== 'N' ? 'Y' : 'N', 'url' => CommonUri::getUrl((string) $url), 'url_overwrite' => $urlOverwrite && $urlOverwrite !== 'N' ? 'Y' : 'N', 'custom' => !is_null($custom) ? (string) $custom : null, 'data' => !is_null($data) ? serialize($data) : null);
        return (int) $this->getDB()->insert('meta', $item);
    }