/** * Process content into an index and save it * * @since 1.1 * * @return void Description... **/ function save ($content) { if (empty($this->product) || empty($this->type) || empty($content)) return false; $factoring = Lookup::index_factors(); if (isset($factoring[$this->type])) $this->factor = $factoring[$this->type]; else $this->factor = 1; $this->terms = apply_filters('ecart_index_content',$content); parent::save(); }
/** * Process content into an index and save it * * @author Jonathan Davis * @since 1.1 * * @param string $content The content to index * @return void **/ function save() { list($content, ) = func_get_args(); $content = apply_filters('shopp_index_content', $content, $this); if (empty($this->product) || empty($this->type) || empty($content)) { return false; } $factoring = Lookup::index_factors(); if (isset($factoring[$this->type])) { $this->factor = $factoring[$this->type]; } else { $this->factor = 1; } $this->terms = $content; parent::save(); }