Issues (319)

Security Analysis    no request data  

This project does not seem to handle request data directly as such no vulnerable execution paths were found.

  Cross-Site Scripting
Cross-Site Scripting enables an attacker to inject code into the response of a web-request that is viewed by other users. It can for example be used to bypass access controls, or even to take over other users' accounts.
  File Exposure
File Exposure allows an attacker to gain access to local files that he should not be able to access. These files can for example include database credentials, or other configuration files.
  File Manipulation
File Manipulation enables an attacker to write custom data to files. This potentially leads to injection of arbitrary code on the server.
  Object Injection
Object Injection enables an attacker to inject an object into PHP code, and can lead to arbitrary code execution, file exposure, or file manipulation attacks.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  File Inclusion
File Inclusion enables an attacker to inject custom files into PHP's file loading mechanism, either explicitly passed to include, or for example via PHP's auto-loading mechanism.
  Command Injection
Command Injection enables an attacker to inject a shell command that is execute with the privileges of the web-server. This can be used to expose sensitive data, or gain access of your server.
  SQL Injection
SQL Injection enables an attacker to execute arbitrary SQL code on your database server gaining access to user data, or manipulating user data.
  XPath Injection
XPath Injection enables an attacker to modify the parts of XML document that are read. If that XML document is for example used for authentication, this can lead to further vulnerabilities similar to SQL Injection.
  LDAP Injection
LDAP Injection enables an attacker to inject LDAP statements potentially granting permission to run unauthorized queries, or modify content inside the LDAP tree.
  Header Injection
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  XML Injection
XML Injection enables an attacker to read files on your local filesystem including configuration files, or can be abused to freeze your web-server process.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
Unfortunately, the security analysis is currently not available for your project. If you are a non-commercial open-source project, please contact support to gain access.

src/GridInterface.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/**
3
 * @company MTE Telecom, Ltd.
4
 * @author Roman Malashin <[email protected]>
5
 */
6
7
namespace Nnx\DataGrid;
8
9
use Nnx\DataGrid\Adapter\AdapterInterface;
10
use Nnx\DataGrid\Column\ColumnInterface;
11
use Nnx\DataGrid\Mutator\MutatorInterface;
12
use Nnx\DataGrid\NavigationBar\NavigationBarInterface;
13
use Traversable;
14
use ArrayAccess;
15
use Zend\Stdlib\InitializableInterface;
16
17
/**
18
 * Interface GridInterface
19
 * @package Nnx\DataGrid
20
 */
21
interface GridInterface extends InitializableInterface
22
{
23
    /**
24
     * Условия для фильтрации выбираемых данных
25
     * @param array | Traversable $conditions
26
     * @return $this
27
     */
28
    public function setConditions($conditions);
29
30
    /**
31
     * Возвращает набор условий по которым фильтровать выборку
32
     * @return array
33
     */
34
    public function getConditions();
35
36
    /**
37
     * Устанавливает адаптер
38
     * @param AdapterInterface $adapter
39
     * @return $this
40
     */
41
    public function setAdapter($adapter);
42
43
    /**
44
     * Возвращает адаптер с помощью которого будет осуществляться выборка данных
45
     * @return AdapterInterface
46
     */
47
    public function getAdapter();
48
49
    /**
50
     * Возвращает коллекцию колонок
51
     * @return array | Traversable
52
     */
53
    public function getColumns();
54
55
    /**
56
     * Добавление колонок в таблицу
57
     * @param array | Traversable $columns
58
     * @return $this
59
     */
60
    public function setColumns($columns);
61
62
    /**
63
     * Добавление колонки в таблицу
64
     * @param ColumnInterface | array | ArrayAccess $column
65
     * @return $this
66
     */
67
    public function add($column);
68
69
    /**
70
     * Удаляет колонку с именем $name из таблицы
71
     * @param string $name
72
     * @return $this
73
     */
74
    public function remove($name);
75
76
    /**
77
     * Возвращает колонку грида
78
     * @param string $name
79
     * @return ColumnInterface
80
     */
81
    public function get($name);
82
83
    /**
84
     * Опции таблицы
85
     * @param array | Traversable $options
86
     * @return $this
87
     */
88
    public function setOptions($options);
89
90
    /**
91
     * Возвращает массив опции таблицы
92
     * @return array | Traversable
93
     */
94
    public function getOptions();
95
96
    /**
97
     * Устанавливает имя таблицы
98
     * @param string $name
99
     * @return $this
100
     */
101
    public function setName($name);
102
103
    /**
104
     * Возвращает имя таблицы
105
     * @return string
106
     */
107
    public function getName();
108
109
    /**
110
     * Возвращает атрибуты используемые при отображении грида
111
     * @return array
112
     */
113
    public function getAttributes();
114
115
    /**
116
     * Устанавливает используемые для отображения таблицы атрибуты
117
     * @param array $attributes
118
     * @return $this
119
     */
120
    public function setAttributes(array $attributes);
121
122
    /**
123
     * Добавляет атрибут таблицы
124
     * @param string $key
125
     * @param mixed $value
126
     * @return mixed
127
     */
128
    public function addAttribute($key, $value);
129
130
    /**
131
     * Возвращает набор мутаторов для строк таблицы
132
     * @return array|ArrayAccess
133
     */
134
    public function getMutators();
135
136
    /**
137
     * Устанавливает набор мутаторов для строк таблицы
138
     * @param array|ArrayAccess $mutators
139
     * @return $this
140
     */
141
    public function setMutators(array $mutators);
142
143
    /**
144
     * Добавляет мутатор для строк таблицы
145
     * @param MutatorInterface|array|ArrayAccess $mutator
146
     * @return $this
147
     */
148
    public function addMutator($mutator);
149
150
    /**
151
     * Возвращает массив строк
152
     * @return array
153
     */
154
    public function getRowSet();
155
156
    /**
157
     * Возвращвет верхнюю навигационную панель
158
     * @return NavigationBarInterface
159
     */
160
    public function getTopNavigationBar();
161
162
    /**
163
     * Устанавливает верхнюю навигационную панель
164
     * @param NavigationBarInterface $topNavigationBar
165
     * @return $this
166
     */
167
    public function setTopNavigationBar($topNavigationBar);
168
169
    /**
170
     * Возвращвет верхнюю навигационную панель
171
     * @return NavigationBarInterface
172
     */
173
    public function getBottomNavigationBar();
174
175
    /**
176
     * Устанавливает верхнюю навигационную панель
177
     * @param NavigationBarInterface $bottomNavigationBar
178
     * @return $this
179
     */
180
    public function setBottomNavigationBar($bottomNavigationBar);
181
}
0 ignored issues
show
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
182