29 $this->famName = isset($data[1]) ? trim($data[1]) : null;
45 return (isset($this->famName) ? $this->famName :
false);
55 return (isset($this->attrIds) ? $this->attrIds :
false);
65 if (!$this->checkName($this->famName)) {
69 $this->family = new_doc(
getDbAccess() , $this->famName);
70 if (!$this->family->isAlive()) {
73 if ($this->family->doctype !=
'C') {
76 $canCreateError = $this->family->control(
'create');
97 foreach ($this->attrIds as $aid) {
98 if ($aid && (!$this->family->getAttribute($aid)) && (strpos($aid,
"extra:") !== 0)) {
105 private function checkName($name)
107 if ($name && (!is_numeric($name))) {
108 if (!preg_match(
'/^[a-z][a-z0-9_]*$/i', $name)) {
static getError($code, $args=null)
getOrder(array $orderdata)
check(array $data, &$extra=null)