Геттер свойства $group

@return Gallery_Entity_Group|Gallery_NullObject
429026
protected function getGroup()
    {
        $table = ORM::getTable($this->getTable()->getPlugin(), 'Group');
        try
        {
            return $table->find($this->getPdoValue('groupId'));
        }
        catch (DomainException $e)
        {
            return new Gallery_NullObject();
        }
    }
813919
public function getServiceInstanceByGroup($group)
    {
        $services = [];
        $services_map = static::services();

        foreach ($this->getServiceInstances() as $name => $info) {
            if (!isset($info['type']) || !isset($info['instance'])) {
                continue;
            }
            $type = $info['type'];

            if (!isset($services_map[$type])) {
                continue;
            }
            $classname = $services_map[$type];

            if ($group !== $classname::group()) {
                continue;
            }
            $services[$name] = $info['instance'];
        }

        return $services;
    }
886144
public function init($group)
	{
		// Lets validate if the post type exists and if so, continue.
		$postTypeModel = $this->getPostType($group);
		if(!$postTypeModel){
    		$errorMessages = 'You are not authorized to do this.';
    		return $this->abort($errorMessages);
    	}

		// Receiving the current data of the group
		$config = NikuConfig::where('group', '=', $group)
			->get()
			->keyBy('option_name')
			->toArray();

		$templates = $postTypeModel->view;

		// Appending the key added in the config to the array
        // so we can use it very easliy in the component.
        foreach($templates as $key => $template){

	    	if(!empty($template['customFields'])){

	    		// For each custom fields
	            foreach($template['customFields'] as $ckey => $customField){
	                $templates[$key]['customFields'][$ckey]['id'] = $ckey;

	                // Adding the values to the result
	            	if(!empty($config[$ckey])){
	            		$templates[$key]['customFields'][$ckey]['value'] = $config[$ckey]['option_value'];
	            	}
	            }
	        }
	    }

		$collection = collect([
			'config' => $this->getConfig($postTypeModel),
			'templates' => $templates,
		]);

		return response()->json($collection);
	}
860194
public function dbGroup($dbGroup = null)
    {
        if ($dbGroup === null)
        {
            return $this->_dbGroup;
        }
        $this->_dbGroup = $dbGroup;

        return $this;
    }
659538
public function tenantsWithGroup(string $group = null): Collection
    {
        return $this->tenants->filter(function (Tenant $tenant) use ($group) {
            return $tenant->group === $group;
        });
    }
12098
public function clear($group = null) {
        if( isset($group) )
            unset($this->settings[$group]);
        else
            $this->settings = [];

        return $this;
    }
1236518
public function groupBy($group)
    {
         //Argument 1 must be a string or array
         Argument::i()->test(1, 'string', 'array');
            
        if (is_string($group)) {
            $group = array($group);
        }
        
        $this->group = $group;
        return $this;
    }
280992
public static function img($images = array(), $attr = array(), $group = NULL)
	{
		return static::instance()->img($images, $attr, $group);
	}
907110
public static function getIcons($group=null)
	{
		$key = $GLOBALS['BOOTSTRAP']['icons']['active'];

		// load icons if not done so far
		if(!isset($GLOBALS['BOOTSTRAP']['icons']['sets'][$key]['icons']))
		{
			if (TL_MODE == 'BE') {
				if (isset($GLOBALS['BOOTSTRAP']['icons']['sets'][$key]['stylesheet'])) {
					foreach ((array) $GLOBALS['BOOTSTRAP']['icons']['sets'][$key]['stylesheet'] as $stylesheet) {
						$GLOBALS['TL_CSS'][] = $stylesheet;
					}
				}
			}

			$GLOBALS['BOOTSTRAP']['icons']['sets'][$key]['icons'] =
				include TL_ROOT . '/' . $GLOBALS['BOOTSTRAP']['icons']['sets'][$key]['path'];
		}

		// get all icons
		if($group === null)
		{
			return $GLOBALS['BOOTSTRAP']['icons']['sets'][$key]['icons'];
		}

		// get all icons as flat array
		elseif($group === true)
		{
			if(self::$flatIcons === null) {
				$icons = array();

				foreach ($GLOBALS['BOOTSTRAP']['icons']['sets'][$key]['icons'] as $groupIcons)
				{
					$icons = array_merge($icons, $groupIcons);
				}

				self::$flatIcons = $icons;
			}

			return self::$flatIcons;
		}

		return $GLOBALS['BOOTSTRAP']['icons']['sets'][$key]['icons'];
	}
697963
public static function &_getRandomDbResource ($group)
	{
		
		$obj	= FALSE;
		
		while (Sonic::countResourceGroup ($group) > 0)
		{

			$name	= Sonic::selectRandomResource ($group);
			$obj	=& Sonic::getResource (array ($group, $name));
			
			// If a PDO object

			if ($obj instanceof \PDO)
			{

				// Attempt to connect to the resource
				// This will throw an exception if it fails or break the loop if it succeeds

				if ($obj instanceof Resource\Db)
				{
					try
					{
						
						$obj->Connect ();
						
						// Set as default group object for persistence
						
						Sonic::setSelectedResource ($group, $name);
						
						break;
						
					}
					catch (\PDOException $e)
					{
						// Do nothing
					}
				}

				// Else not a framework database objects so break the loop to use it

				else
				{
					break;
				}

			}

			// Remove resource from the framework as its not valid
			// then continue to the next object

			Sonic::removeResource ($group, $name);
			$obj = FALSE;

		}
		
		return $obj;
		
	}
915783
public function chgrp(int $group): vfsStreamContent
    {
        $this->group                 = $group;
        $this->lastAttributeModified = time();
        return $this;
    }
65000
public function getVerticesGroup($group)
    {
        $vertices = array();
        foreach ($this->graph->getVertices()->getMap() as $vid => $vertex) {
            if ($vertex->getGroup() === $group) {
                $vertices[$vid] = $vertex;
            }
        }

        return new Vertices($vertices);
    }
1343444
public function insertGroup(Group $group)
    {
        try {
            return $this->innerGateway->insertGroup($group);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }
661942
public function setGroup($group)
    {
        //Argument 1 must be a string or array
        Argument::i()->test(1, 'string', 'array');
            
        if (is_string($group)) {
            $group = array($group);
        }
        
        $this->group = $group;
        return $this;
    }
974918
public function formProperties(array $group = null)
    {
        $obj = $this->obj();
        $props = $obj->metadata()->properties();

        // We need to sort form properties by form group property order if a group exists
        if (!empty($group)) {
            $props = array_merge(array_flip($group), $props);
        }

        foreach ($props as $propertyIdent => $propertyMetadata) {
            if (method_exists($obj, 'filterPropertyMetadata')) {
                $propertyMetadata = $obj->filterPropertyMetadata($propertyMetadata, $propertyIdent);
            }

            if (!is_array($propertyMetadata)) {
                throw new UnexpectedValueException(sprintf(
                    'Invalid property data for "%1$s", received %2$s',
                    $propertyIdent,
                    (is_object($propertyMetadata) ? get_class($propertyMetadata) : gettype($propertyMetadata))
                ));
            }

            $propertyMetadata['display_options'] = $this->displayOptions();

            $formProperty = $this->createFormProperty();
            $formProperty->setViewController($this->viewController());
            $formProperty->setPropertyIdent($propertyIdent);
            $formProperty->setData($propertyMetadata);
            $formProperty->setPropertyVal($obj[$propertyIdent]);

            if ($formProperty->hidden()) {
                $this->hiddenProperties[$propertyIdent] = $formProperty;
            } else {
                yield $propertyIdent => $formProperty;
            }
        }
    }
54036
public function responseGroup($responseGroup = null)
  {
    if (null === $responseGroup)
    {
      return $this->responseConfig['responseGroup'];
    }

    $this->responseConfig['responseGroup'] = $responseGroup;

    return $this;
  }
1214680
public function withGroup($group)
    {
        $group = str_replace('\\', '/', $group);
        if (!isset(static::$instances[$group])) {
            $instance = new static($this->options);
            $instance->setGroup($group);
            static::$instances[$group] = $instance;
        }
        return static::$instances[$group];
    }