$key = $val; if ( $key === 'settings' ) { $this->settings = unserialize( $val ); } } public function get_id() { return $this->id; } public function get_source() { return $this->source; } public function get_settings() { return $this->settings; } public function get_priority() { return $this->priority; } public function get_name() { return $this->name; } public function get_description() { return $this->description; } public function get_logo() { return $this->logo; } public function is_active() { return ! is_null( $this->id ); } public function get_column_source() { $return = '
'; $return .= '
'; $return .= '' . $this->get_name() . '
'; return $return; } public function get_column_order() { if ( $this->is_active() ) { return '
'; } else { return '
This source is not currently active.
'; } } public function get_column_actions() { $source = $this->get_source(); $id = $this->get_id(); $new = 'Setup this Source'; $edit = 'Change Source Settings'; $cats = 'Download Category List'; $remove = 'Remove this Source'; if ( $this->is_active() ) { $actions = '
' . $edit . ' ' . $cats . '

' . $remove . '
'; } else { $actions = '
' . $new . /*' ' . $cats .*/ '
'; } return '
' . $actions . '
'; } } }