/*public function removeAll()
{
$this->children = [];
$this->items = [];
$this->assignments = [];
$this->rules = [];
$this->save();
}
359598
protected function load()
	{
		$this->rules = [];
		$rules = DiscHelper::loadFromFile($this->ruleFile);
		foreach ($rules as $name => $ruleData) {
			$this->rules[$name] = unserialize($ruleData);
		}
	}
1030540
protected function _clear()
		{
			$this->selects	= array();
			$this->wheres	= array();
			$this->limit	= 999999;
			$this->offset	= 0;
			$this->sorts	= array();
		}
1134041
public function clear()
    {
        if (null !== $this->aSport) {
            $this->aSport->removeSkill($this);
        }
        if (null !== $this->aVariationOf) {
            $this->aVariationOf->removeVariation($this);
        }
        if (null !== $this->aMultipleOf) {
            $this->aMultipleOf->removeMultiple($this);
        }
        if (null !== $this->aObject) {
            $this->aObject->removeSkill($this);
        }
        if (null !== $this->aStartPosition) {
            $this->aStartPosition->removeSkillRelatedByStartPositionId($this);
        }
        if (null !== $this->aEndPosition) {
            $this->aEndPosition->removeSkillRelatedByEndPositionId($this);
        }
        if (null !== $this->aFeaturedPicture) {
            $this->aFeaturedPicture->removeFeaturedSkill($this);
        }
        if (null !== $this->aFeaturedVideo) {
            $this->aFeaturedVideo->removeFeaturedSkill($this);
        }
        if (null !== $this->aFeaturedTutorial) {
            $this->aFeaturedTutorial->removeFeaturedTutorialSkill($this);
        }
        if (null !== $this->aKstrukturRoot) {
            $this->aKstrukturRoot->removeRootSkill($this);
        }
        if (null !== $this->aFunctionPhaseRoot) {
            $this->aFunctionPhaseRoot->removeRootSkill($this);
        }
        $this->id = null;
        $this->sport_id = null;
        $this->name = null;
        $this->alternative_name = null;
        $this->slug = null;
        $this->description = null;
        $this->history = null;
        $this->is_translation = null;
        $this->is_rotation = null;
        $this->is_acyclic = null;
        $this->is_cyclic = null;
        $this->longitudinal_flags = null;
        $this->latitudinal_flags = null;
        $this->transversal_flags = null;
        $this->movement_description = null;
        $this->sequence_picture_url = null;
        $this->variation_of_id = null;
        $this->start_position_id = null;
        $this->end_position_id = null;
        $this->is_composite = null;
        $this->is_multiple = null;
        $this->multiple_of_id = null;
        $this->multiplier = null;
        $this->generation = null;
        $this->importance = null;
        $this->picture_id = null;
        $this->video_id = null;
        $this->tutorial_id = null;
        $this->kstruktur_id = null;
        $this->function_phase_id = null;
        $this->object_id = null;
        $this->version = null;
        $this->version_created_at = null;
        $this->version_comment = null;
        $this->alreadyInSave = false;
        $this->clearAllReferences();
        $this->applyDefaultValues();
        $this->resetModified();
        $this->setNew(true);
        $this->setDeleted(false);
    }
38363
public function clear()
    {
        $this->id = null;
        $this->active = null;
        $this->filtertype = null;
        $this->code = null;
        $this->alreadyInSave = false;
        $this->clearAllReferences();
        $this->applyDefaultValues();
        $this->resetModified();
        $this->setNew(true);
        $this->setDeleted(false);
    }
1224901
public function clear()
    {
        $this->id = null;
        $this->title = null;
        $this->slug = null;
        $this->athlete_label = null;
        $this->object_slug = null;
        $this->object_label = null;
        $this->object_plural_label = null;
        $this->skill_slug = null;
        $this->skill_label = null;
        $this->skill_plural_label = null;
        $this->skill_picture_url = null;
        $this->group_slug = null;
        $this->group_label = null;
        $this->group_plural_label = null;
        $this->transition_label = null;
        $this->transition_plural_label = null;
        $this->transitions_slug = null;
        $this->position_slug = null;
        $this->position_label = null;
        $this->feature_composition = null;
        $this->feature_tester = null;
        $this->is_default = null;
        $this->alreadyInSave = false;
        $this->clearAllReferences();
        $this->applyDefaultValues();
        $this->resetModified();
        $this->setNew(true);
        $this->setDeleted(false);
    }
1102544
public function clear()
    {
        if (null !== $this->aSport) {
            $this->aSport->removeGroup($this);
        }
        $this->id = null;
        $this->title = null;
        $this->description = null;
        $this->slug = null;
        $this->sport_id = null;
        $this->skill_count = null;
        $this->alreadyInSave = false;
        $this->clearAllReferences();
        $this->resetModified();
        $this->setNew(true);
        $this->setDeleted(false);
    }
360773
public function clear()
    {
        if (null !== $this->aSkill) {
            $this->aSkill->removeSkillReference($this);
        }
        if (null !== $this->aReference) {
            $this->aReference->removeSkillReference($this);
        }
        $this->skill_id = null;
        $this->reference_id = null;
        $this->alreadyInSave = false;
        $this->clearAllReferences();
        $this->resetModified();
        $this->setNew(true);
        $this->setDeleted(false);
    }
599234
function clear()
	{
		foreach ($this->nodes as $n) {$n->clear(); $n = null;}
		// This add next line is documented in the sourceforge repository. 2977248 as a fix for ongoing memory leaks that occur even with the use of clear.
		if (isset($this->children)) foreach ($this->children as $n) {$n->clear(); $n = null;}
		if (isset($this->parent)) {$this->parent->clear(); unset($this->parent);}
		if (isset($this->root)) {$this->root->clear(); unset($this->root);}
		unset($this->doc);
		unset($this->noise);
	}
1310090
public function deleteWithChildren()
    {
        $ids = array();

        $children = $this->getChildren()->toArray();

        array_walk_recursive($children, function($i, $k) use (&$ids) { if ($k == 'id') $ids[] = $i; });

        foreach ($ids as $id)
        {
            $this->destroy($id);
        }
    }
1086190
public function clear()
    {
        $this->id = null;
        $this->name = null;
        $this->role = null;
        $this->alreadyInSave = false;
        $this->alreadyInValidation = false;
        $this->alreadyInClearAllReferencesDeep = false;
        $this->clearAllReferences();
        $this->resetModified();
        $this->setNew(true);
        $this->setDeleted(false);
    }
285771
protected function clear(): void
    {
        $this->innerHtml = null;
        $this->outerHtml = null;
        $this->text      = null;
        $this->textWithChildren = null;

        if (is_null($this->parent) === false) {
            $this->parent->clear();
        }
    }
1367210
public function clear()
    {
        $this->metaTags = [];
        $this->linkTags = [];
        $this->css = [];
        $this->cssFiles = [];
        $this->js = [];
        $this->jsFiles = [];
        static::$constants = [];
        $this->placeholders = [];
    }
1240856
public function clear()
    {
        foreach ($this->objectsRepository as $repository) {
            if ($repository instanceof Repository) {
                $repository->clear();
            }
        }
        parent::clear();
        $this->objectsRepository = [];
    }
743536
public function clear()
    {
        foreach (array_keys($this->instances) as $key) {
            $this->instances[$key] = null;
            unset($this->instances[$key]);
        }

        $this->instances = [];
    }
1220073
public void clear() {
        List<Widget> children = getChildren();
        Log.d(TAG, "clear(%s): removing %d children", getName(), children.size());
        for (Widget child : children) {
            removeChild(child, true);
        }
        requestLayout();
    }
28678
public function clearAll()
	{
		$this->clearAuthAssignments();
		$this->db->createCommand()->delete($this->itemChildTable);
		$this->db->createCommand()->delete($this->itemTable);
	}
1332089
public function clear()
    {
        $this->id = null;
        $this->first_name = null;
        $this->last_name = null;
        $this->created_at = null;
        $this->updated_at = null;
        $this->version = null;
        $this->version_created_at = null;
        $this->version_created_by = null;
        $this->person_team_link_ids = null;
        $this->person_team_link_ids_unserialized = null;
        $this->person_team_link_versions = null;
        $this->person_team_link_versions_unserialized = null;
        $this->person_image_ids = null;
        $this->person_image_ids_unserialized = null;
        $this->person_image_versions = null;
        $this->person_image_versions_unserialized = null;
        $this->person_function_link_ids = null;
        $this->person_function_link_ids_unserialized = null;
        $this->person_function_link_versions = null;
        $this->person_function_link_versions_unserialized = null;
        $this->alreadyInSave = false;
        $this->clearAllReferences();
        $this->applyDefaultValues();
        $this->resetModified();
        $this->setNew(true);
        $this->setDeleted(false);
    }