The method initDataset() does not seem to exist on object<FForattini\Btrieve\Persistence\Pool>.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Loading history...
43
44
return $this;
45
}
46
47
/**
48
* Checks if this element exists in this dataset.
49
*
50
* @param int $index
51
*
52
* @return bool
53
*/
54
public function has($index)
55
{
56
if (isset($this->dataset[$index])) {
57
return true;
58
}
59
60
return false;
61
}
62
63
/**
64
* @aliasof has
65
*
66
* @param int $index
67
*
68
* @return bool
69
*/
70
public function exists($index)
71
{
72
return $this->has($index);
73
}
74
75
/**
76
* Returns the element in this index from the dataset.
77
*
78
* @param int $index
79
*
80
* @return mixed
81
*/
82
public function elem($index)
83
{
84
if ($this->has($index)) {
85
return $this->dataset[$index];
86
}
87
throw new Exception('Element doesnt exist in this dataset.');
88
}
89
90
/**
91
* Function will show how to deal with the element.
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.