Index method

@param string $type The requested PostType.
@return void
515545
public function index($type = null)
    {
        $this->_validateActionIsEnabled('index');

        $this->_event('beforeIndex');

        $this->paginate = [
            'limit' => 25,
            'order' => [
                ucfirst($this->Model->alias()) . '.id' => 'asc'
            ]
        ];

        foreach ($this->type['filters'] as $key => $value) {
            if (is_array($value)) {
                $this->Search->addFilter($key, $value);
            } else {
                $this->Search->addFilter($value);
            }
        }

        $query = $this->_callQuery($this->Model->find('all'));
        $query = $this->Search->search($query);

        $this->set('data', $this->paginate($query));

        $this->_event('afterIndex');
    }
1210336
protected function setRequestType(string $type):void
    {
        if ($type !== Protocol::REQUEST_TYPE_NOTIFY && $type !== Protocol::REQUEST_TYPE_FORWARD && $type !== protocol::REQUEST_TYPE_REGISTER) {
            throw new \TypeError("Unsupported request type: $type!");
        }

        $this->requestType = $type;
        $this->setHeader(Protocol::VERSION." ".$type);

    }
1358053
public function index()
    {
        $this->paginate = [
            'contain' => ['CmsTermTaxonomy', 'CmsContent']
        ];
        $this->set('data', $this->paginate($this->CmsTermRelation));
        $this->set('_serialize', ['data']);
    }
412515
public function index()
    {
        $this->paginate['order'] = ['name' => 'ASC'];

        $groups = $this->paginate($this->UsersGroups->find());

        $this->set(compact('groups'));
    }
1160903
public function register( $post_types = [] ) {
		foreach ( $post_types as $post_type => $callback ) {
			$this->post_types[ $post_type ] = [
				'callback' => $callback,
			];
		}
	}
124549
public void setType (int index, String type)
    {
    if (index >= 0 && index < length) {
        data[index*5+3] = type;
    } else {
        badIndex(index);
    }
    }
1221503
public function index() {
        $this->paginate = [
            'contain' => ['CmsContent'],
            'limit' => 1000,
            'maxLimit' => 1000
        ];
        $this->set('data', $this->paginate($this->CmsContentMeta));
        $this->set('_serialize', ['data']);
    }
898683
public function onAddedToType(TypeInterface &$type)
    {
        parent::onAddedToType($type);

        $type->addTrait(IsArchivedInterface::class, IsArchivedInterfaceImplementation::class)->serialize($this->getName());
    }
1115761
public function forget($type, $object)
    {
        foreach ($this->getIndexes($type) as $index) {
            $index->forget($object);
        }
    }
1216735
public function type($type)
    {
        $types = is_array($type) ? $type : func_get_args();

        $this->types = array_merge($this->types, $types);

        return $this;
    }
901989
public function setType(string $type):self
    {
        if (!isset($this->types[$type])) {
            Checkers::notice('Unknown response type [' . $type . ']');
        } else {
            $this->type = $type;
        }
        return $this;
    }
260669
public function registerPostType()
    {
        $config = $this->getPostTypeConfig();
        if (empty($config)) {
            return;
        }

        register_post_type($this->getPostType(), $config);
    }
615317
public function onTable($type = null)
    {
        if (!is_null($type)) {
            Breadcrumbs::register('notifications-' . $type, function($breadcrumbs) use($type) {
                $breadcrumbs->push('Notifications ' . ucfirst($type), handles('antares::notifications/index'));
            });
            view()->share('breadcrumbs', Breadcrumbs::render('notifications-' . $type));
        }
    }
1025383
public function setType($type): self
    {
        if ($type instanceof Type) {
            $this->setIndex($type->getIndex()->getName());
            $type = $type->getName();
        }

        $this->_type = (string) $type;

        return $this;
    }
375726
public function index()
    {
        $groups = $this->Filter->filter($this->Groups->find('all'));
        $this->set([
            'groups' => $this->Filter->paginate($groups)
        ]);
    }
605075
public function setByType($type)
    {
        if (isset(self::$typeList[$type])) {
            $this->value = self::$typeList[$type];
        } else {
            throw new Exception("undefined index $type");
        }
    }
374701
public function index($property, $type, $class = null)
    {
        $commandClass = $this->getCommandClass('index.create');
        $this->command = new $commandClass($property, $type, $class);

        return $this->command;
    }