AbstractStore   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 6
lcom 1
cbo 1
dl 0
loc 49
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A setRemoteFilter() 0 3 1
A setRemoteSort() 0 3 1
A setStoreId() 0 3 1
A getStoreId() 0 3 1
A setPageSize() 0 3 1
A getPageSize() 0 3 1
1
<?php
2
namespace Ext\Data;
3
4
5
use Ext\Base;
6
7
class AbstractStore extends Base
8
{
9
10
	/**
11
	 * true to defer any filtering operation to the server. If false, filtering is done locally on the client.
12
	 * @param $bool
13
	 * @return $this
14
	 */
15
	public function setRemoteFilter($bool){
16
		return $this->setProperty('remoteFilter',(bool)$bool);
17
	}
18
19
	/**
20
	 * true if the sorting should be performed on the server side, false if it is local only
21
	 * @param $bool
22
	 * @return $this
23
	 */
24
	public function setRemoteSort($bool){
25
		return $this->setProperty('remoteSort',(bool)$bool);
26
	}
27
28
	/**
29
	 * Unique identifier for this store. If present, this Store will be registered with the Ext.data.StoreManager,
30
	 * making it easy to reuse elsewhere.
31
	 * @param $storeId
32
	 * @return $this
33
	 */
34
	public function setStoreId($storeId){
35
		return $this->setProperty('storeId',$storeId);
36
	}
37
38
    public function getStoreId(){
39
        return $this->getProperty('storeId');
40
    }
41
42
	/**
43
	 * The number of records considered to form a 'page'. This is used to power the built-in paging using the nextPage
44
	 * and previousPage functions when the grid is paged using a PagingToolbar
45
	 * @param $pageSize
46
	 * @return $this
47
	 */
48
	public function setPageSize($pageSize){
49
		return $this->setProperty('pageSize',$pageSize);
50
	}
51
52
    public function getPageSize(){
53
        return $this->getProperty('pageSize');
54
    }
55
}