Clears all loaded assets

@return object
9416
public function clear()
    {
        $this->aCss            = [];
        $this->aCssInline      = [];
        $this->aJs             = [];
        $this->aJsInlineHeader = [];
        $this->aJsInlineFooter = [];
        return $this;
    }
101287
public function clear()
    {
        $this->defaults = [];
        $this->types = [];
        $this->requires = [];
        $this->notNullables = [];

        return $this;
    }
1206082
public function clear()
    {
        $this->_data                 = array();
        $this->__modified_properties = array();
        $this->setStatus(NULL);

        if ($this->isConnected()) {
            $this->_data = $this->getTable()->getDefaults();
        }

        return $this;
    }
878707
public function clear()
    {
        $this->callBeforeListeners('clear', [$this->storageName]);
        $result = $this->storage->clear();
        $this->callAfterListeners('clear', [$this->storageName]);

        return $result;
    }
37237
public function clear () {
        $this->_data = null;
        $this->_count = null;
        $this->getConnection ()->getClient ()->delete ($this->name);
        return $this;
    }
176526
public function clearProperties() {
		foreach ($this->properties as $property) {
			$property->setParent(null);
		}
		$this->properties->clear();

		return $this;
	}
731745
public function clearFilters()
    {
        foreach ($this->filters as $type => $filters) {
            $this->filters[$type] = [];
        }

        return $this;
    }
528060
public static function clear()
    {
        $path = root().'resources/controllers/*.php';

        $files = File::glob($path);
        //
        foreach ($files as $file) {
            File::delete($file);
        }
        //
        return true;
    }
698879
public function clear()
    {
        if (is_file($this->path)) {
            unlink($this->path);
        }

        $this->path = '';

        echo $this->path;

        return $this;
    }
331673
protected function flushAssets()
    {
        $message = '';
        $except = [Yii::getAlias('@webroot/assets/.gitignore'), Yii::getAlias('@webroot/assets/index.html')];
        $dir = Yii::getAlias('@webroot/assets');
        $it = new RecursiveDirectoryIterator($dir, RecursiveDirectoryIterator::SKIP_DOTS);
        /* @var RecursiveDirectoryIterator[] $files */
        $files = new RecursiveIteratorIterator($it, RecursiveIteratorIterator::CHILD_FIRST);
        $hasErrors = false;
        if (stristr(PHP_OS, 'WIN') === false) {
            foreach ($files as $file) {
                if (!in_array($file->getRealPath(), $except)) {
                    if ($file->isDir() && $file->isLink() === false) {
                        $result = @rmdir($file->getRealPath());
                    } elseif ($file->isLink() === true) {
                        $result = @unlink($file->getPath() . DIRECTORY_SEPARATOR . $file->getFilename());
                    } else {
                        $result = @unlink($file->getRealPath());
                    }
                    if (!$result) {
                        $hasErrors = true;
                    }
                }
            }
        }
        $message .= $hasErrors ?
            '<p>' . Yii::t('wocenter/app', 'Some assets are not flushed.') . '</p>' :
            '<p>' . Yii::t('wocenter/app', 'Assets are flushed.') . '</p>';
        
        return $message;
    }
1103545
public function reset()
    {
        parent::reset();

        if ($this->image) {
            $this->image();
            $this->medium_querystring = [];
            $this->filter();
            $this->clearAlternatives();
        }

        $this->format = 'guess';
        $this->quality = $this->default_quality;

        $this->debug_watermarked = false;

        return $this;
    }
45710
public function clearTable()
    {
        $properties = $this->getProperties();
        $properties['cols'] = [];
        $properties['datas'] = [];
        $properties['styles'] = [];
        $properties['events'] = [];
        $this->setProperties($properties);
        return $this;
    }
889396
public function clear()
    {
        $now = Carbon::now('UTC');

        ORM::for_table('files_downloads')
            ->where_lt('created_at', $now->subHours(SettingsFile::TOKENS_OLDER_THAN_HOURS))
            ->delete_many();
    }
810267
public function clear() {
        $this->nested = [];
        $this->getter = null;
        $this->setter = null;
        return $this;
    }
1200102
public function clear()
    {
        if (!empty($this->files)) {
            $fs = new FileSystem();
            foreach ($this->files as $file) {
                $fs->remove($file);
            }
        }
    }
821754
public function clearCache(){
		$path = Yii::getAlias('webroot').$this->getAssetsUrl().DIRECTORY_SEPARATOR.$this->folder.DIRECTORY_SEPARATOR.'*';

		$files = glob($path);

		foreach($files as $file){
			if(is_file($file))
				unlink($file);
		}
	}
918587
public function clear()
    {
        if (null !== $this->aSource) {
            $this->aSource->removeMedia($this);
        }
        $this->id = null;
        $this->source_id = null;
        $this->pageid = null;
        $this->title = null;
        $this->url = null;
        $this->mime = null;
        $this->width = null;
        $this->height = null;
        $this->size = null;
        $this->sha1 = null;
        $this->thumburl = null;
        $this->thumbmime = null;
        $this->thumbwidth = null;
        $this->thumbheight = null;
        $this->thumbsize = null;
        $this->descriptionurl = null;
        $this->descriptionurlshort = null;
        $this->imagedescription = null;
        $this->datetimeoriginal = null;
        $this->artist = null;
        $this->licenseshortname = null;
        $this->usageterms = null;
        $this->attributionrequired = null;
        $this->restrictions = null;
        $this->timestamp = null;
        $this->user = null;
        $this->userid = null;
        $this->missing = null;
        $this->known = null;
        $this->imagerepository = null;
        $this->created_at = null;
        $this->updated_at = null;
        $this->alreadyInSave = false;
        $this->clearAllReferences();
        $this->resetModified();
        $this->setNew(true);
        $this->setDeleted(false);
    }