/** * Sets the element type * * @param string $type Element type * @since 1.0 * @access public * @return void */ static function setType($type) { self::$_type = $type; self::updateAttributes(array('type' => $type)); }