Classes

File content/category/CategoriesItemsParameters.class.php

File content/category/CategoriesItemsParameters.class.php

 1:  2:  3:  4:  5:  6:  7:  8:  9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 
<?php
/**
 * This class allows you to inquire the table that stores the items and the database field that contains the ID of the category in which it is located
 * @package     Content
 * @subpackage  Category
 * @copyright   &copy; 2005-2019 PHPBoost
 * @license     https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL-3.0
 * @author      Kevin MASSY <reidlos@phpboost.com>
 * @version     PHPBoost 5.2 - last update: 2016 10 24
 * @since       PHPBoost 4.0 - 2013 02 28
 * @contributor Arnaud GENET <elenwii@phpboost.com>
*/

class CategoriesItemsParameters
{
    private $table_name_contains_items;
    private $field_name = self::DEFAULT_FIELD_NAME;

    const DEFAULT_FIELD_NAME = 'id_category';

    public function set_table_name_contains_items($table_name)
    {
        $this->table_name_contains_items = $table_name;
    }

    public function get_table_name_contains_items()
    {
        return $this->table_name_contains_items;
    }

    public function set_field_name_id_category($field_name)
    {
        $this->field_name = $field_name;
    }

    public function get_field_name_id_category()
    {
        return $this->field_name;
    }
}
?>