定義を追加する

@param   string  $term
@param   mixed|mixed[]   $description

@return  $this
480110
public function addDefinition(string $term, $description){
        $this->list[]   = [
            "term"          => $term,
            "description"   => array_filter(
                (array)$description,
                function($v){
                    return is_scalar($v)
                        || (is_object($v) && method_exists($v, "__toString"));
                }
            ),
        ];

        return $this;
    }
815169
protected function setMetas($title = null, $description = null)
    {
        $meta = Config::getInstance()->get('Eureka\Global\Meta');

        if ($title !== null) {
            $meta['title'] = strip_tags($title . ' - ' . $meta['title']);
        }

        if ($description !== null) {
            $meta['description'] = strip_tags($description);
        }

        Config::getInstance()->add('Eureka\Global\Meta', $meta);

        return $this;
    }
634507
public function setDescription($description)
    {
        if (!empty($description)) {
            Yii::$app->view->registerMetaTag(['name' => 'description', 'content' => $description], 'description');
            Yii::$app->view->registerMetaTag(['name' => 'og:description', 'content' => $description], 'og:description');
        }
        return $this;
    }
854619
public function setDescription($description) {
		if (is_array($description) && empty($description)) {
			$this->description = new \stdClass;
		} else {
			$this->description = $description;
		}

		return $this;
	}
1087243
final public function addEvent($description, $type='notice', $subtext=NULL) {
		
		if (!$this->isEnabled()) return;
		
		$now = $this->getMicrotime();
		
		$event				= new \stdClass();
		$event->description = $description;
		$event->type		= $type;
		$event->subtext		= $subtext;
		$event->chrono		= abs($now - $this->lastChrono);
		
		$this->events[]		= $event;
		
		$this->lastChrono	= $now;
		
	}
66318
public function addAndTerm($term, $value)
    {
        //Trim spaces from the term
        $value = trim($value);

        //If the query isn't empty, add an AND
        if($this->query !== '')
        {
            $this->query .= ' AND ';
        }

        //Add the term to the query
        $this->query .= $term.':'.$value;
    }
1282822
public function addHashtag($term)
    {
        $term = trim($term);

        //@todo implement is_hashtag filter method
        if (!is_string($term)) {
            return;
        }

        if ($hashtag = $this->getService('repos:hashtags.hashtag')->findOrAddNew(array('name' => $term))) {
            $this->hashtags->insert($hashtag);

            return $this;
        }

        return;
    }
162658
public function setDescription($description)
    {
        $this->description = (empty((string) $description) ? false : (string) $description);
    }
1347397
public function setDescription($description)
    {
        // clean and store description
        // if is false, set false
        $this->description = (false == $description) ? $description : strip_tags(htmlentities($description));

        return $this;
    }
44184
public function setDescription($description)
	{
		$description = strip_tags($description);

		if (mb_strlen($description) > 160) {
			$description = mb_substr($description, 0, 160);
		}

		$this->description = $description;
	}
28266
public function term($field, $term, array $attributes = [])
    {
        $query = new TermQuery($field, $term, $attributes);

        $this->append($query);

        return $this;
    }
532844
public function addMetaBoxes($term = null)
    {
        if (is_object($term)) {
            $this->load($term->term_id);
        }

        $meta_boxes = $this->getMetaBoxes();
        $meta_boxes = $this->replaceMetaBoxGroupMatches($meta_boxes);
        if ($meta_boxes === self::METABOX_GROUPING_PREFIX) {
            $meta_boxes = $this->getPrefixGroupedMetaBoxes();
        }

        foreach ($meta_boxes as $k => $field_config) {
            $this->renderMetaBox($k, array(
                'args'=>$field_config
            ));
        }
    }
1193706
public function addOption($description, $option = null)
    {
        if ($option) {
            $this->options[$option] = $description;
        } else {
            $this->options[] = $description;
        }

        return $this;
    }
925582
public function setDescription($description)
    {
        self::writeFullTag(
            $description,
            'description',
            false,
            'media:description',
            $this->validator,
            'validateDescription',
            $this->exception,
            'Provided description is not a valid value.'
        );

        return $this;
    }
538228
public function setDescription($description)
    {
        $this->meta()->setDescription($description);
        $this->openGraph()->setDescription($description);
        $this->twitter()->setDescription($description);

        return $this;
    }
1148319
public function setProfessionalDescriptions($descriptions)
    {
        foreach ($descriptions as $description) {
            $description->setVariety($this);
        }
        $this->professional_descriptions = $descriptions;

        return $this;
    }
867440
public function setInfoFromDescription($description)
  {
    // 1 seeder(s), 20 leecher(s), 63 download(s) - 793.9 MiB
    if (!preg_match('~([0-9]+) seeder\(s\), ([0-9]+) leecher\(s\), ([0-9]+) download\(s\)(?: - ([0-9]+(\.[0-9]+)))?~i', $description, $match)) {
      return;
    }

    $this->seeds = intval($match[1]);
    $this->leechers = intval($match[2]);
    $this->downloads = intval($match[3]);
    if (isset($match[4])) {
      // MB -> B
      $this->size = floatval($match[4]) * 1000000;
    }
  }