if (!is_object($item)) { $item = is_array($item) ? (object) $item : new stdClass(); } // Set internal item object! $this->item = $item; // Chaining! return $this; } /** * put your comment there... * * @param mixed $key */ public function setTableKey($key) { $this->key = $key; return $this; } /** * put your comment there... * */ public function table() { return $this->name; } } // End class. // Hookable. CJTxTable::define('CJTxTable', array('hookType' => CJTWordpressEvents::HOOK_FILTER));