Zwraca obiekt filtra na podstawie post
@param \Mmi\Http\RequestPost $post
@return GridStateFilter
774033
protected function _retrievePostFilter(\Mmi\Http\RequestPost $post)
    {
        //brak filtracji dla tego grida
        if (false === strpos($post->filter, $this->_grid->getClass())) {
            return;
        }
        $columnName = substr($post->filter, strpos($post->filter, '[') + 1, -1);
        $tableName = null;
        $fieldName = $columnName;
        //obsługa joinowanych
        if (strpos($columnName, '.')) {
            $fieldTable = explode('.', $columnName);
            $tableName = $fieldTable[0];
            $fieldName = $fieldTable[1];
        }
        //paginator
        if ($fieldName == '_paginator_') {
            //ustawianie filtra
            return (new GridStateFilter())
                    ->setField($fieldName)
                    ->setValue($post->value);
        }
        //iteracja po kolumnach
        foreach ($this->_grid->getColumns() as $column) {
            if ($column->getName() != $columnName) {
                continue;
            }
            //ustawianie filtra
            return (new GridStateFilter())
                    ->setField($fieldName)
                    ->setTableName($tableName)
                    ->setMethod($column->getMethod())
                    ->setValue($post->value);
        }
    }
1315353
public function getFilterValue($param = null)
    {
        //iteracja po filtrach w gridzie
        foreach ($this->_grid->getState()->getFilters() as $filter) {
            //znaleziony filtr dla tego pola z tabelą
            if ($filter->getTableName() . '.' . $filter->getField() == $this->getName()) {
                //zwrot wartości filtra
                return $filter->getValue();
            }
            //znaleziony filtr dla tego pola (bez tabeli)
            if (!$filter->getTableName() && $filter->getField() == $this->getName()) {
                /** @var \stdClass $value */
                $valueObj = json_decode($filter->getValue());
                if (null !== $param && is_object($valueObj) && property_exists($valueObj, $param)) {
                    return $valueObj->{$param};
                }
                //zwrot wartości filtra
                return $filter->getValue();
            }
        }
    }
851705
private function parseFilters(\DOMXPath $xpath, \DOMNode $requestRootNode)
    {
        $filters = [];

        foreach ($xpath->query(self::FILTERS_PATH, $requestRootNode) as $filterNode) {
            $filters[$filterNode->getAttribute('name')] = $filterNode->nodeValue;
        }

        return $filters;
    }
539742
public function GetFilterRegex($dataPost) {
        $filterKey = "filter";
        if (array_key_exists($filterKey, $dataPost)) {
            $filterRegex = '`.*' . $dataPost[$filterKey] . '.*$`';
            return $filterRegex;
        }

        $filterRegex = '`^.*$`';
        return $filterRegex;
    }
290068
public function make(IPost $post)
    {
        //$post->setContent($this->view->make($post->getLayoutViewPath(), compact('post'))->render());
        $post->setContent($this->view->make(\OogleeBConfig::get('config.post_view.view'), compact('post'))->render());
    }
650528
public function handleRequest()
    {
        //obsługa eksportera
        $this->_handleCsvExporter(FrontController::getInstance()->getRequest());
        //obsługa danych z POST
        $post = FrontController::getInstance()->getRequest()->getPost();
        //brak posta
        if ($post->isEmpty()) {
            return;
        }
        //jeśli przebudowano filtry lub sortowania render grida
        if ($this->_rebuildFilter($post) || $this->_rebuildOrder($post)) {
            $this->_render();
        }
    }
931392
public function delete(Post $post)
    {
        $response = $this->api->process(new DeletePost($post));
        if ($response->getStatusCode() == 200) {
            return true;
        } else {
            return false;
        }
    }
941622
public function openFilterForm($usePost = false) {
		$this->_setFlagUsePost($usePost);
		$type = 'get';
		$dataToggle = 'pjax-form';
		if ($this->_getFlagUsePost()) {
			$type = 'post';
			$dataToggle = 'ajax-form';
		} else {
			$filterData = $this->getFilterData();
			if (!empty($filterData)) {
				$this->setFilterInputData($filterData);
			}
			$conditions = $this->getFilterConditions();
			if (!empty($conditions)) {
				$this->setFilterInputConditions($conditions);
			}
		}

		$options = [
			'data-toggle' => $dataToggle,
			'type' => $type,
		];
		$optionsDefault = $this->_getOptionsForElem('openFilterForm');
		$result = $this->ExtBs3Form->create(null, $options + $optionsDefault);

		return $result;
	}
929219
public function delete(Post $post)
    {
        $this->authorize(PostsPolicy::PERMISSION_DELETE);

        try {
            $post->trashed() ? $post->forceDelete() : $post->delete();

            return $this->jsonResponseSuccess([
                'message' => $this->transNotification('deleted', ['title' => $post->title], $post->toArray())
            ]);
        }
        catch(\Exception $e) {
            return $this->jsonResponseError(['message' => $e->getMessage()], 500);
        }
    }
1228188
public function make(IPost $post)
    {
        //$post->setResponse($this->response->view('admin.posts.view', compact('post')));
        $post->setResponse($this->response->view(\OogleeBConfig::get('config.post_view.view'), compact('post')));
    }
176714
public function filterSubmitted(array $allowed)
    {
        $this->submitted = array_intersect_key($this->submitted, array_flip($allowed));
        return $this->submitted;
    }
320454
public function post($name = null, $default = null, $filter = true, $type = null)
    {
        $post = $this->request['post'];

        if ($filter !== 'raw') {
            gplcart_array_trim($post, (bool) $filter);
        }

        if (isset($name)) {
            $result = gplcart_array_get($post, $name);
            $return = isset($result) ? $result : $default;
        } else {
            $return = $post;
        }

        gplcart_settype($return, $type, $default);
        return $return;
    }
1085812
public function setSubscriptionUsageData(SetUsageData\RequestData $requestData)
    {
        $request = new SetUsageData\Request($requestData);

        return $this->sendRequest($request, SetUsageData\ApiResponse::class);
    }
1310026
public function setFiltertype($v)
    {
        if ($v !== null) {
            $v = (string) $v;
        }

        if ($this->filtertype !== $v) {
            $this->filtertype = $v;
            $this->modifiedColumns[SmartyFilterTableMap::FILTERTYPE] = true;
        }


        return $this;
    }
310072
public function handleRequest()
    {
        //obsługa danych z POST
        $post = FrontController::getInstance()->getRequest()->getPost();
        //brak posta
        if ($post->isEmpty()) {
            return;
        }
        //niedozwolone na ACL (w edycji na polu operacje)
        if ($this->_checkbox->getGrid()->getColumn('_operation_') && !(new AclAllowed)->aclAllowed($this->_checkbox->getGrid()->getColumn('_operation_')->getOption('editParams'))) {
            return;
        }
        if ($this->_changeRecord($post)) {
            exit;
        }
    }
1269444
protected function make( $isPost = false ){

       $ch = curl_init( $this->requestUrl );

       if( $isPost ){
        curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
        curl_setopt($ch,CURLOPT_POST, 1);
        curl_setopt($ch,CURLOPT_POSTFIELDS, $isPost );
       }

      curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, $this->verifySSL);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

       $output = curl_exec($ch);


      if( $output === false ){
          throw new \ErrorException( curl_error($ch) );
      }


      curl_close($ch);
      return $output;

    }
1084299
private function _filterFile(\Mmi\Http\RequestFile $requestFile)
    {
        if (empty($this->_filters)) {
            return true;
        }
        if (!isset($this->_filters['mime_types']) || empty($this->_filters['mime_types'])) {
            return true;
        }
        $allowedTypes = $allowedExts = [];
        foreach ($this->_filters['mime_types'] as $mt) {
            if (array_key_exists('mime', $mt)) {
                $allowedTypes[] = strtolower($mt['mime']);
            } elseif (array_key_exists('extensions', $mt)) {
                $allowedExts = array_merge($allowedExts, explode(",", strtolower(preg_replace('/ \s/', '', $mt['extensions']))));
            }
        }
        //sprawdzamy typy mime
        if (in_array(strtolower($requestFile->type), $allowedTypes)) {
            return true;
        }
        //sprawdzamy rozszerzenie
        if (strrpos($this->_fileName, '.') > 0) {
            $ext = strtolower(substr($this->_fileName, strrpos($this->_fileName, '.') + 1));
            if (in_array($ext, $allowedExts)) {
                return true;
            }
        }
        return false;
    }