Code Duplication    Length = 20-21 lines in 2 locations

class/bookmark.php 1 location

@@ 45-65 (lines=21) @@
42
 *
43
 * {@link XoopsObject}
44
 **/
45
if (!class_exists('Bookmark')):
46
47
    /**
48
     * Class Bookmark
49
     */
50
    class bookmark extends XoopsObject
51
    {
52
        /**
53
         * Constructor
54
         */
55
        public function __construct()
56
        {
57
            //            $this->ArtObject();
58
            $this->table = planet_DB_prefix('bookmark');
59
            $this->initVar('bm_id', XOBJ_DTYPE_INT, null, false);
60
            /* user ID */
61
            $this->initVar('bm_uid', XOBJ_DTYPE_INT, 0, true);
62
            /* blog ID */
63
            $this->initVar('blog_id', XOBJ_DTYPE_INT, 0, true);
64
        }
65
    }
66
endif;
67
/**
68
 * Topic object handler class.

class/category.php 1 location

@@ 45-64 (lines=20) @@
42
 *
43
 * {@link XoopsObject}
44
 **/
45
if (!class_exists('Bcategory')):
46
47
    /**
48
     * Class Bcategory
49
     */
50
    class Bcategory extends XoopsObject
51
    {
52
        /**
53
         * Constructor
54
         */
55
        public function __construct()
56
        {
57
            //            $this->ArtObject();
58
            $this->table = planet_DB_prefix('category');
59
            $this->initVar('cat_id', XOBJ_DTYPE_INT, null, false);
60
            $this->initVar('cat_title', XOBJ_DTYPE_TXTBOX, '', true);
61
            $this->initVar('cat_order', XOBJ_DTYPE_INT, 1, false);
62
        }
63
    }
64
65
endif;
66
/**
67
 * Category object handler class.