public function offsetUnset($dao_name) { unset($this->container[\Helper\Text::classNameOnly($dao_name)]); }
/** * Returns the original columns of table based on class attributes * @return array Columns for SELECT */ private function getOriginalColumns() { $className = \Helper\Text::classNameOnly(get_called_class()); $class = 'Model\\' . $className; $reflection = new \ReflectionClass($class); $properties = $reflection->getProperties(\ReflectionProperty::IS_PUBLIC); $cols = array(); foreach ($properties as $property) { if ($property->getDeclaringClass()->getName() == $class) { $cols[] = $property->getName(); } } return $cols; }