Sets the max-row attribute for this query.

@param string $value
@return Zend_Gdata_Spreadsheets_CellQuery Provides a fluent interface
196348
public function setMaxRow($value)
    {
        if ($value != null) {
            $this->_params['max-row'] = $value;
        } else {
            unset($this->_params['max-row']);
        }
        return $this;
    }
393976
public function setCoreCacheDbExpires($value)
    {
        $this->setFieldName('cache_db_expires');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
1250842
public function setSharedMaxAge(int $value)
    {
        $this->setPublic();
        $this->headers->addCacheControlDirective('s-maxage', $value);

        return $this;
    }
1298564
public function setMaxCol($value)
    {
        if ($value != null) {
            $this->_params['max-col'] = $value;
        } else {
            unset($this->_params['max-col']);
        }
        return $this;
    }
241868
public function setSharedMaxAge($value)
    {
        $this->addCacheControlDirective('public');
        $this->removeCacheControlDirective('private');
        $this->addCacheControlDirective('s-maxage', $value);

        return $this;
    }
452487
public function setRange($value)
    {
        if (is_array($value) || $value instanceof \Traversable) {
            $this->range = $value;
        } else {
            throw new InvalidArgumentException('Range param must be instance of an array or Traversable');
        }

        return $this;
    }
1008539
public function setCurrent($value)
    {
        if (StaticValidator::validates('number', $value)) {
            $this->current = StaticFilter::filter('number',$value);
            $this->offset = $this->rowsPerPage * ($this->current - 1);
        }
        return $this;
    }
1350045
public function setCoreManagerJsCacheMaxAge($value)
    {
        $this->setFieldName('manager_js_cache_max_age');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
418320
public function getColumnDataForObject($value) : Row
    {
        /** @var EmbeddedParentObjectMapping $embeddedDefinition */
        $embeddedDefinition = $this->getRelation()->getEmbeddedObjectMapper()->getMapping();
        $rowData            = $embeddedDefinition->persistObject(PersistenceContext::dummy(), $value);

        return $rowData;
    }
879082
public function setValue($value) {
        global $DB;
        $values = (array) $value;
        $cohortstofetch = array();

        foreach ($values as $onevalue) {
            if ((!$this->optionExists($onevalue)) &&
                    ($onevalue !== '_qf__force_multiselect_submission')) {
                array_push($cohortstofetch, $onevalue);
            }
        }

        if (empty($cohortstofetch)) {
            $this->setSelected($values);
            return true;
        }

        list($whereclause, $params) = $DB->get_in_or_equal($cohortstofetch, SQL_PARAMS_NAMED, 'id');

        $list = $DB->get_records_select('cohort', 'id ' . $whereclause, $params, 'name');

        $currentcontext = context_helper::instance_by_id($this->contextid);
        foreach ($list as $cohort) {
            // Make sure we can see the cohort.
            if (!cohort_can_view_cohort($cohort, $currentcontext)) {
                continue;
            }
            $label = format_string($cohort->name, true, $currentcontext);
            $this->addOption($label, $cohort->id);
        }

        $this->setSelected($values);
        return true;
    }
118198
public static function setMaxStep($value)
    {
        Session::set(self::classNameWithoutNumber() . '.maxStep', (int) $value);
        return Session::save();
    }
984345
public function setCoreCacheDb($value)
    {
        $this->setFieldName('cache_db');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
234697
public function setValue($value, $data = null)
    {
        if ($data instanceof DataObject) {
            $this->loadFrom($data);
            return $this;
        }
        
        return parent::setValue($value);
    }
1093853
public function setValue($value)
	{
		if ($value instanceof Range) {
			$str = $value->from->format($this->format) . $this->delimiter . $value->to->format($this->format);
			return parent::setValue($str);
		} else {
			return parent::setValue((string) $value);
		}
	}
872729
public function setCreatedAt($value)
    {
        if (! is_null($column = $this->getCreatedAtColumn())) {
            $this->setAttribute($column, $value);
        }
    }
911654
public function setValue($value, $data = null)
    {
        $id = $this->getIsNullId();

        if (is_array($data) && array_key_exists($id, $data) && $data[$id]) {
            $value = null;
        }

        $this->valueField->setValue($value);

        parent::setValue($value);

        return $this;
    }
74445
public function setSharedMaxAge(int $value): self
    {
        $this->setPublic();
        $this->header->addCacheControlDirective('s-maxage', $value);

        return $this;
    }