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

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

		parent::init();

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

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

		$bookmark = get_bookmark( $id );

		return $bookmark->link_description;
	}
}