Sets a tile of this tile view

@param SwatTile $tile the tile to set
15371
public function setTile(SwatTile $tile)
    {
        // if we're overwriting an existing tile, remove it's parent link
        if ($this->tile !== null) {
            $this->tile->parent = null;
        }

        $this->tile = $tile;
        $tile->parent = $this;
    }
402001
public function setTree($tree)
    {
        if ($tree instanceof SwatDataTreeNode) {
            $tree = SwatTreeFlydownNode::convertFromDataTree($tree);
        } elseif (!($tree instanceof SwatTreeFlydownNode)) {
            throw new SwatInvalidClassException(
                'Tree must be an intance of ' .
                    'either SwatDataTreeNode or SwatTreeFlydownNode.',
                0,
                $tree
            );
        }

        $this->tree = $tree;
    }
432528
public function setFlushableCache(SwatDBCacheNsFlushable $cache)
    {
        foreach ($this->objects as $object) {
            if ($object instanceof SwatDBFlushable) {
                $object->setFlushableCache($cache);
            }
        }
    }
925889
public function setStriked($striked = true)
    {
        $this->_isStriked = $striked;

        if ($striked) {
            $this->_isDoubleStriked = false;
        }
    }
1099061
public function setThemeTemplate($template)
    {
        $this->_themeTemplate = $template;
        if ($this->getTheme() != null) {
            $this->getTheme()->setTemplate($this->_themeTemplate);
        }
    }
212070
public function setCache(Mustache_Cache $cache)
    {
        if (isset($this->logger) && $cache->getLogger() === null) {
            $cache->setLogger($this->getLogger());
        }

        $this->cache = $cache;
    }
1317017
public function setCaching($caching) {
    $this->view->caching = $caching ? \Smarty::CACHING_LIFETIME_CURRENT : \Smarty::CACHING_OFF;
  }
1003455
public static function setMap($map = null)
    {
        if (is_null(self::$map)) {
            self::$map = include(__DIR__ . '/CommandLine/map.php');
        }

        if (!is_null($map)) {
            self::$map = $map;
        }
    }
953230
protected function validateGroup(SwatTileViewGroup $group)
    {
        // note: This works because the id property is set before children are
        // added to parents in SwatUI.
        if ($group->id !== null) {
            if (array_key_exists($group->id, $this->groups_by_id)) {
                throw new SwatDuplicateIdException(
                    "A group with the id '{$group->id}' already exists " .
                        'in this tile view.',
                    0,
                    $group->id
                );
            }
        }
    }
1150082
public function setCache($cache)
    {
        $this->cache = $cache;
        if ($this->isBool($cache) && $cache === false) {
            $this->cache = $cache;
        } else {
            if (is_object($cache)) {
                if ($this->isInstanceOf($cache, CacheStorage::class)) {
                    $this->cache = $cache;
                } else {
                    throw new RouterException('$cache must either be a boolean or instance of ' . CacheStorage::class . '.');
                }
            } else {
                $this->cache = $this->cache($cache);
            }
        }
    }
582644
public function setTotal($total)
    {
        $this->total = (int) $total;

        if ($this->total < 1) {
            $this->total = 1;
        }

        if ($this->page < 1) {
            $this->page = 1;
        } elseif ($this->page > $this->total) {
            $this->page = $this->total;
        }
    }
23730
public function setTemplate(array $data, string $key): void
  {
    $this->templateData = $data;
    $this->templateKey  = $key;
  }
639648
public function setNestedTile($name, Tile $tile = null) {
        if ($this->configured) throw new IllegalStateException('Configuration is frozen');

        $this->nestedTiles[$name] = $tile;
        return $this;
    }
536288
public function setTarget($target)
    {
        if (is_array($target)) {
            $this->_params = array_merge($this->_params, $target);
        }
        $this->_target = $target;
    }
1160911
public function setCache($cache)
    {
        if ($cache instanceof Cache ||
            (class_exists('\Doctrine\Common\Cache\CacheProvider') && $cache instanceof \Doctrine\Common\Cache\CacheProvider)
        ) {
            $this->cache = $cache;
            return;
        }

        throw new \Exception('Cache not supported');
    }
778777
public function setLayout( $template )
	{
		$template = str_replace( get_stylesheet_directory().'/templates/', '', $template );
		$this->template = UtilityFacade::trimRight( $template, '.php' );
		return $this->get( apply_filters( 'castor/templates/layout', 'layouts/default' ));
	}
192586
public function setResource($resource) {
        $this->resource = $resource;
        $this->width = imagesx($resource);
        $this->height = imagesy($resource);
    }