Elgg\Mocks\Database\PrivateSettingsTable::set PHP Метод

set() публичный Метод

public set ( $entity_guid, $name, $value )
    public function set($entity_guid, $name, $value)
    {
        $entity = get_entity((int) $entity_guid);
        if (!$entity) {
            return false;
        }
        if (!isset($value)) {
            return false;
        }
        $this->iterator++;
        $id = $this->iterator;
        $row = (object) ['id' => $id, 'entity_guid' => $entity->guid, 'name' => (string) $name, 'value' => (string) $value];
        $this->rows[$id] = $row;
        $this->addQuerySpecs($row);
        return parent::set($entity_guid, $name, $value);
    }