Returns collection name used by this fixture.
@return array|string related collection name
3689
protected function getCollectionName()
    {
        if ($this->collectionName) {
            return $this->collectionName;
        }

        /* @var $modelClass ActiveRecord */
        $modelClass = $this->modelClass;
        return $modelClass::collectionName();
    }
964773
public function getConnectionTableName()
    {
        $type_names = [$this->getSourceTypeName(), $this->getTargetTypeName()];
        sort($type_names);

        return implode('_', $type_names);
    }
1005799
public function getCollection()
    {
        if (! isset($this->collection)) {
            return str_replace(
                '\\', '', Str::snake(Str::plural(class_basename($this)))
            );
        }

        return $this->collection;
    }
1071825
public function name() {
		$res = $this->_match;
		$count = count($res);

		if (empty($this->_stub['name'])) {
			return '';
		}
		$name = $this->_stub['name'];

		for ($i = 1; $i <= $count; $i++) {
			$name = str_ireplace('$' . $i, $res[$i - 1], $name);
		}
		return $name;
	}
429231
public function getNames() {
		$names = [];

		$refl = new ReflectionObject($this);
		foreach ($refl->getProperties(ReflectionProperty::IS_PUBLIC) as $prop) {
			$names[] = $prop->name;
		}
		foreach (array_keys($this->factories_) as $name) {
			$names[] = $name;
		}

		sort($names);
		return $names;
	}
102499
public function getNames()
    {
        $names = array_keys($this->getServices());
        $len = strlen(self::METHOD_PREFIX);
        foreach (get_class_methods($this) as $method) {
            if (Text::startsWith($method, self::METHOD_PREFIX)) {
                $name = lcfirst(substr($method, $len));
                if ($name) {
                    $names[] = $name;
                }
            }
        }
        return $names;
    }
854111
public function getFormName()
    {
        $form = $this->getForm();
        $formName = $form->getName();

        if ($form instanceof FormCollectionInterface) {
            $formName .= '[' . $this->getEntityContainer()->getName() . ']';
        }

        $formName .= '[' . $this->getName() . ']';
        return $formName;
    }
1083255
public function getRelatedColumns()
    {
        //make sure we only run this once and then return the cached version
        if (empty($this->relatedColumns)) {
            foreach ($this->getColumns() as $column) {
                if ($column->getOption('is_related')) {
                    $this->relatedColumns[$column->getOption('column_name')] = $column->getOption('column_name');
                }
            }
        }

        return $this->relatedColumns;
    }
664107
protected function getUsedClasses()
    {
        $uses = array();
        if ($orm = $this->getOrmUse()) {
            $uses[] = $orm;
        }
        if (count($this->getTableM2MRelations()) || count($this->getAllLocalForeignKeys())) {
            $uses[] = $this->getCollectionClass();
        }

        return $uses;
    }
202140
public function getThemeName()
    {
        if(!empty($this->_themeName))
            $name = $this->_themeName;
        elseif(!empty($this->_theme))
            $name = $this->_theme->getName();
        else
            $name = Helper::getConfig()['theme']['name'];
        
        return $name;
    }
228435
public function getCollectionThemeID()
    {
        if ($this->vObj->pThemeID < 1 && $this->cID != HOME_CID) {
            $c = static::getByID(HOME_CID);

            return $c->getCollectionThemeID();
        } else {
            return $this->vObj->pThemeID;
        }
    }
559425
public function getFixtures()
    {
        if ($this->_fixtures === null) {
            $this->_fixtures = $this->createFixtures($this->fixtures());
        }

        return $this->_fixtures;
    }
475055
public function getCollectionItemAjax()
    {
        $term = $this->getPosted('term');
        $collection_id = $this->getPosted('collection_id');

        if (empty($term) || empty($collection_id)) {
            return array('error' => $this->text('An error occurred'));
        }

        $collection = $this->collection->get($collection_id);

        if (empty($collection)) {
            return array('error' => $this->text('An error occurred'));
        }

        if (!$this->access($collection['type'])) {
            return array('error' => $this->text('No access'));
        }

        $conditions = array(
            'status' => 1,
            'title' => $term,
            'store_id' => $collection['store_id'],
            'limit' => array(0, $this->config('autocomplete_limit', 10))
        );

        return $this->collection_item->getListEntities($collection['type'], $conditions);
    }
69518
def get_collection_name(cls):
        '''
        
        '''
        if hasattr(cls, '_meta'):
            np = getattr(cls._meta, 'namespace', None)
            cname = getattr(cls._meta, 'name', None)
            if np:
                return '{}.{}'.format(np, cname or cls.__name__.lower())
        return cname or cls.__name__.lower()
660656
public function getCollectionNames() {

        $stmt   = $this->connection->query("SELECT name FROM sqlite_master WHERE type='table' AND name!='sqlite_sequence';");
        $tables = $stmt->fetchAll( \PDO::FETCH_ASSOC);
        $names  = [];

        foreach ($tables as $table) {
            $names[] = $table['name'];
        }

        return $names;
    }
1190687
protected function collection()
    {
        if (empty($this->collection)) {
            $this->collection = $this->factory()->assetCollection();
        }

        return $this->collection;
    }
352373
public function getRelatedColumns()
	{
		//make sure we only run this once and then return the cached version
		if (!sizeof($this->relatedColumns))
		{
			foreach ($this->getColumns() as $column)
			{
				if ($column->getOption('is_related'))
				{
					$this->relatedColumns[$column->getOption('column_name')] = $column->getOption('column_name');
				}
			}
		}

		return $this->relatedColumns;
	}