Craft\Neo_GetSearchKeywordsTask::runStep PHP Method

runStep() public method

public runStep ( $step )
    public function runStep($step)
    {
        if (count($this->_blocks) == $step) {
            $this->_end();
        } else {
            $block = $this->_blocks[$step];
            craft()->content->contentTable = $block->getContentTable();
            craft()->content->fieldColumnPrefix = $block->getFieldColumnPrefix();
            craft()->content->fieldContext = $block->getFieldContext();
            foreach (craft()->fields->getAllFields() as $field) {
                $fieldType = $field->getFieldType();
                if ($fieldType) {
                    $fieldType->element = $block;
                    $handle = $field->handle;
                    $this->_keywords[] = $fieldType->getSearchKeywords($block->getFieldValue($handle));
                }
            }
        }
        return true;
    }