<?php
/**
 * CPAC_Column_Link_Target
 *
 * @since 2.0
 */
class CPAC_Column_Link_Target extends CPAC_Column {

	/**
	 * @see CPAC_Column::init()
	 * @since 2.2.1
	 */
	public function init() {

		parent::init();

		// Properties
		$this->properties['type']	 	= 'column-target';
		$this->properties['label']	 	= __( 'Target', 'codepress-admin-columns' );
	}

	/**
	 * @see CPAC_Column::get_value()
	 * @since 2.0
	 */
	function get_value( $id ) {

		$bookmark = get_bookmark( $id );

		return $bookmark->link_target;
	}
}