Danh mục

product__img (function(){if("undefined"===typeof kintInitialized){kintInitialized=1;var e=[],f=-1,g=function(a){var b=window.getSelection(),c=document.createRange();c.selectNodeContents(a);b.removeAllRanges();b.addRange(c)},h=function(a){Array.prototype.slice.call(document.querySelectorAll(".kint nav, .kint-tabs>li:not(.kint-active-tab)"),0).forEach(a)},k=function(a,b){if(!a.classList)return!1;"undefined"===typeof b&&(b="kint-show");return a.classList.contains(b)},l=function(a,b){"undefined"===typeof b&&(b="kint-show");a.classList.add(b)}, m=function(a,b){"undefined"===typeof b&&(b="kint-show");a.classList.remove(b)},n=function(a){do a=a.nextElementSibling;while("dd"!==a.nodeName.toLowerCase());return a},q=function(a,b){var c=n(a);"undefined"===typeof b&&(b=k(a));b?m(a):l(a);1===c.childNodes.length&&(c=c.childNodes[0].childNodes[0])&&k(c,"kint-parent")&&q(c,b)},r=function(a,b){var c=n(a).getElementsByClassName("kint-parent"),d=c.length;for("undefined"===typeof b&&(b=k(a));d--;)q(c[d],b);q(a,b)},s=function(a){var b=a,c=0;a.parentNode.getElementsByClassName("kint-active-tab")[0].className= "";for(a.className="kint-active-tab";b=b.previousSibling;)1===b.nodeType&&c++;a=a.parentNode.nextSibling.childNodes;for(var d=0;dKint ("+(new Date).toISOString()+')'+document.getElementsByClassName("-kint-js")[0].outerHTML+document.getElementsByClassName("-kint-css")[0].outerHTML+'
'+a.parentNode.outerHTML+"
"),b.document.close()},w=function(a,b){function c(a){var c=1===b?a.replace(/^#/,""):a;if(isNaN(c))return a.trim().toLocaleLowerCase();c=parseFloat(c);return isNaN(c)? a.trim():c}var d=a.tBodies[0];[].slice.call(a.tBodies[0].rows).sort(function(a,d){a=c(a.cells[b].textContent);d=c(d.cells[b].textContent);return ad?1:0}).forEach(function(a){d.appendChild(a)})},x=function(a){var b=document.querySelector(".kint-focused");b&&m(b,"kint-focused");if(-1!==a){b=e[a];l(b,"kint-focused");var c=function(a){return a.offsetTop+(a.offsetParent?c(a.offsetParent):0)};window.scrollTo(0,c(b)-window.innerHeight/2)}f=a},y=function(a,b){a?0>--b&&(b=e.length-1):++b>=e.length&& (b=0);x(b);return!1};window.addEventListener("click",function(a){var b=a.target,c=b.nodeName.toLowerCase();if(t(b)){if("dfn"===c)g(b),b=b.parentNode;else if("var"===c)b=b.parentNode,c=b.nodeName.toLowerCase();else if("th"===c)return a.ctrlKey||w(b.parentNode.parentNode.parentNode,b.cellIndex),!1;if("li"===c&&"kint-tabs"===b.parentNode.className)return"kint-active-tab"!==b.className&&(s(b),-1!==f&&u()),!1;if("nav"===c)return"footer"===b.parentNode.nodeName.toLowerCase()?(b=b.parentNode,k(b)?m(b):l(b)): setTimeout(function(){0a&&(d=a);p
$path array(0)
$this VSCategoryEntity(12)
  • contents
  • Available methods (58)
  • Static class properties (1)
  • protected _id -> integer0
    private __moduleName -> string(8) "Category"
    protected _parentIds -> array(0)
    protected _parents -> array(0)
    private __vars -> array(0)
    private __fieldPrefix -> string(10) "categories"
    private __columns -> array(14)
    'categories_id' => string(2) "Id"
    'categories_parent_id' => string(8) "ParentId"
    'categories_left' => string(4) "Left"
    'categories_right' => string(5) "Right"
    'categories_key' => string(3) "Key"
    'categories_title' => string(5) "Title"
    'categories_slug' => string(4) "Slug"
    'categories_intro' => string(5) "Intro"
    'categories_title_tag' => string(8) "TitleTag"
    'categories_keyword' => string(7) "Keyword"
    'categories_description' => string(11) "Description"
    'categories_status' => string(6) "Status"
    'categories_created_at' => string(9) "CreatedAt"
    'categories_updated_at' => string(9) "UpdatedAt"
    private __properties -> array(14)
    'Id' => string(6) "number"
    'ParentId' => string(6) "number"
    'Left' => string(6) "number"
    'Right' => string(6) "number"
    'Key' => string(6) "string"
    'Title' => string(6) "string"
    'Slug' => string(6) "string"
    'Intro' => string(6) "string"
    'TitleTag' => string(6) "string"
    'Keyword' => string(6) "string"
    'Description' => string(6) "string"
    'Status' => string(6) "number"
    'CreatedAt' => string(6) "string"
    'UpdatedAt' => string(6) "string"
    private __level -> integer0
    private __children -> array(0)
    private __featuredImage -> NULL
    private __attributes -> array(0)
  • public static getEntityPath($className = "") -> string - Path to entity include file name.
    Get entity path.
    @param $className (string) - Name of class to identify its entity.
    @return string - Path to entity include file name.
    
    Inherited from VSEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Entity/VSEntity.php:475
    public static getInstance() -> $__instance
    GetInstance
    @return $__instance
    
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Category/VSCategoryEntity.php:103
    public static parse($className = "") -> string - Name of entity.
    Parse a class name to entity name.
    @param $className (string) - a class name want to parse.
    @return string - Name of entity.
    
    Inherited from VSEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Entity/VSEntity.php:459
    public __call($method, $args) -> mixed
    Just php magic method.
    @param  string $method - Name of called method.
    @param  array $args   - List of arguments.
    @return mixed
    
    Inherited from VSEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Entity/VSEntity.php:329
    public __construct()
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Category/VSCategoryEntity.php:112
    public addAttribute(VSAttribute $attribute)
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Category/VSCategoryEntity.php:69
    public addAttributeItem($key = "", $item = NULL)
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Category/VSCategoryEntity.php:74
    public addAttributes($attributes = array())
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Category/VSCategoryEntity.php:50
    public addChild(VSEntity $child)
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Category/VSCategoryEntity.php:94
    public addParent(VSEntity $parent)
    Add an object as parent of this entity.
    @param  VSEntity $parent - Object to add as parent.
    
    Inherited from VSEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Entity/VSEntity.php:121
    public addParentIds($ids = array())
    Add ids of parents.
    @param  array $ids - List of parents' ids.
    
    Inherited from VSEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Entity/VSEntity.php:186
    public addParents($parents = array())
    Add multiple objects as this entity's parents.
    @param  array $parents - List of VSEntity objects.
    
    Inherited from VSEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Entity/VSEntity.php:135
    public attribute($key = "")
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Category/VSCategoryEntity.php:60
    public attributeGroup()
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Category/VSCategoryEntity.php:79
    public attributes()
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Category/VSCategoryEntity.php:55
    public bindXML(SimpleXMLElement $xml)
    Bind properties and their values to XML document.
    @param  SimpleXMLElement $xml - XML node want to bind data.
    
    Inherited from VSEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Entity/VSEntity.php:69
    public childOf($id = 0) -> boolean
    Check if entity is child of a parent.
    @param  integer $id - Id of parent to check.
    @return boolean
    
    Inherited from VSEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Entity/VSEntity.php:81
    public children()
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Category/VSCategoryEntity.php:89
    public countCategory($category_id, $object = Article) -> object
    @category Count article inside by each category, use for Article/category.
    @author phu.lv <vanphupc50@gmail.com>
    @todo use this entity in template like {{ item_of_category.countCategory([item_of_category.getId])
    @see same function at Article Entity -> countCategory, use at Article/detail
    @return object
    
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Category/VSCategoryEntity.php:189
    public countItemCategory($object = Product, $category_id = NULL) -> object
    @category Count item has select this category
    @author phu.lv <phu.lv@lptech.asia>
    @todo use this entity in template like {{ item_of_category.countItemCategory('Module',item_of_category.getId)
    @return object
    
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Category/VSCategoryEntity.php:204
    public featureImage()
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Category/VSCategoryEntity.php:35
    public firstParent() -> VSEntity
    Get first parent.
    @return VSEntity
    
    Inherited from VSEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Entity/VSEntity.php:150
    public firstParentId() -> integer - Id of first parent.
    Get id of first parent.
    @return integer - Id of first parent.
    
    Inherited from VSEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Entity/VSEntity.php:168
    public getByCategory($object = "", $category_id = NULL)
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Category/VSCategoryEntity.php:210
    public getCategory($id)
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Category/VSCategoryEntity.php:246
    public getCategoryImages($category_id, $type = category)
    @author PhuLV <vanphupc50@gmail.com>
    @since 1.0
    @category Entity to get Each Image Feature by id
    @param Number $category_id Category Item Id
    @param String $type Type of item need to get, have category and category_img
    
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Category/VSCategoryEntity.php:26
    public getCategoryTitle($shiftLevel = 0, $levelShiftChar = ---)
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Category/VSCategoryEntity.php:151
    public getChildrens() -> Array [Danh sách danh mục con]
    Lấy danh sách danh mục con, tạo entity này để lấy dữ liệu trực tiếp ngoài view
    
    @return Array [Danh sách danh mục con]
    
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Category/VSCategoryEntity.php:230
    public getDateTimeCreated() -> string Date time created in formatted
    Get date time created use format in setting
    @return string Date time created in formatted
    @author asmking <nguyen.nd@vietsol.net>
    
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Category/VSCategoryEntity.php:170
    public getEntityName($entityPath = "") -> string - name of entity.
    Get entity name from entity path.
    @param $entityPath (string) - path to entity.
    @return string - name of entity.
    
    Inherited from VSEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Entity/VSEntity.php:445
    public getId() -> integer
    Get id of this entity.
    @return integer
    
    Inherited from VSEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Entity/VSEntity.php:309
    public getItemByCategories($object = "", $category_id = array(), $filters = array())
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Category/VSCategoryEntity.php:217
    public getItemSlug($returnModuleSlug = true) -> mixed - If $returnModuleSlug is true, then always return string.
    Get slug of this entity, it's path to view this entity presentation
    @param  boolean $returnModuleSlug - Wheter to return module slug if this
    entity doesn't have alias.
    @return mixed - If $returnModuleSlug is true, then always return string.
    Else, return slug string or false if entity has no alias.
    @see VSPath::getItemSlug()
    
    Inherited from VSEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Entity/VSEntity.php:264
    public getLevel($shiftLevel = 0)
    Inherited from VSBinaryTreeEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/BinaryTree/VSBinaryTreeEntity.php:41
    public getMappingData() -> array of data match with fields in table data that this entity mapped.
    Fill values from entity's properties to fields of database. Usually using for preparing data to insert, update to database.
    @return array of data match with fields in table data that this entity mapped.
    
    Inherited from VSEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Entity/VSEntity.php:413
    public getModuleName() -> string - Name of module.
    Get name of module that this entity belong to.
    @return string - Name of module.
    
    Inherited from VSEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Entity/VSEntity.php:204
    public getParents() -> CategoryEntity
    Lấy thông tin danh mục cha
    
    @return CategoryEntity
    
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Category/VSCategoryEntity.php:241
    public getPath()
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Category/VSCategoryEntity.php:134
    public getRealPath() -> string - The public real path of entity.
    Get public real path of entity. Overwrite method of parent.
    @return string - The public real path of entity.
    @author BabyWolf (Tony Nguyen)
    
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Category/VSCategoryEntity.php:123
    public hasChildren()
    Inherited from VSBinaryTreeEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/BinaryTree/VSBinaryTreeEntity.php:37
    public hasField($fieldName = "") -> boolean
    Check if entity has a field
    @param $fieldName (string) - column name in database
    @return boolean
    
    Inherited from VSEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Entity/VSEntity.php:214
    public hasParents() -> boolean
    Check if entity has parents.
    @return boolean
    
    Inherited from VSEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Entity/VSEntity.php:94
    public init($data = array(), $fieldPrefix = "") -> VSEntity or inherited class.
    Init entity with data (usually data pulled from database).
    @param $data (array) - Dataset with field => value.
    @return VSEntity or inherited class.
    
    Inherited from VSEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Entity/VSEntity.php:395
    public isLeaf()
    Inherited from VSBinaryTreeEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/BinaryTree/VSBinaryTreeEntity.php:60
    public isRoot()
    Inherited from VSBinaryTreeEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/BinaryTree/VSBinaryTreeEntity.php:51
    public isSuperRoot()
    Inherited from VSBinaryTreeEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/BinaryTree/VSBinaryTreeEntity.php:65
    public lastParent() -> VSEntity
    Get last parent.
    @return VSEntity
    
    Inherited from VSEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Entity/VSEntity.php:159
    public lastParentId() -> integer - Id of last parent.
    Get id of last parent.
    @return integer - Id of last parent.
    
    Inherited from VSEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Entity/VSEntity.php:177
    public load($object) -> object - entity object.
    Loading entity.
    @param $object - Object inherit VSModel.
    @return object - entity object.
    
    Inherited from VSEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Entity/VSEntity.php:506
    public parentIds() -> array
    Get list of parent id.
    @return array
    
    Inherited from VSEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Entity/VSEntity.php:103
    public parents() -> array
    Retrieve all parents of entity.
    @return array
    
    Inherited from VSEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Entity/VSEntity.php:112
    public setAttributeGroup(VSAttributeGroupEntity $group)
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Category/VSCategoryEntity.php:84
    public setFeatureImage(VSFileEntity $image)
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Category/VSCategoryEntity.php:40
    public setId($value = 0)
    Set this entity id.
    @param  integer $value
    
    Inherited from VSEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Entity/VSEntity.php:318
    public setLevel($level = 0)
    Inherited from VSBinaryTreeEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/BinaryTree/VSBinaryTreeEntity.php:47
    public setModuleName($name = "")
    Set module name that this entity belong to.
    @param  string $name - Module name.
    
    Inherited from VSEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Entity/VSEntity.php:195
    public setUrl($url = #)
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Category/VSCategoryEntity.php:143
    public size()
    Inherited from VSBinaryTreeEntity
    Defined in phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/BinaryTree/VSBinaryTreeEntity.php:33
  • private $__instance :: NULL
Called from phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Category/VSCategoryEntity.php:128 [VSCategoryEntity->getRealPath()]
  1. phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Path/VSPath.php:380 [VSCategoryEntity->getRealPath()]
  2. phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Entity/VSEntity.php:266 [VSPath->getItemSlug()]
  3. <ROOT>/vendor/twig/twig/src/Extension/CoreExtension.php:1919 [VSEntity->getItemSlug()]
  4. <ROOT>/cache/themes/cambien.com.vn/0c/0c1c6bb8bdc89c51dcb806dcd0781bbd.php:66 [Twig\Extension\CoreExtension::getAttribute()]
  5. <ROOT>/vendor/twig/twig/src/Template.php:402 [__TwigTemplate_62f36666e9d9d786aeccb4c5cd946852->doDisplay()]
  6. <ROOT>/vendor/twig/twig/src/Template.php:358 [Twig\Template->yield()]
  7. <ROOT>/vendor/twig/twig/src/Template.php:373 [Twig\Template->display()]
  8. <ROOT>/vendor/twig/twig/src/TemplateWrapper.php:51 [Twig\Template->render()]
  9. <ROOT>/vendor/twig/twig/src/Extension/CoreExtension.php:1526 [Twig\TemplateWrapper->render()]
  10. <ROOT>/cache/themes/cambien.com.vn/4e/4e85bab13aca52e623002b156a1baa87.php:248
  11. <ROOT>/vendor/twig/twig/src/Template.php:446 [__TwigTemplate_b56943f50c32501a85ba95d735820700->block_body()]
  12. <ROOT>/cache/themes/cambien.com.vn/14/149be277eb22a561f5ee5e4af7cc10e5.php:138 [Twig\Template->yieldBlock()]
  13. <ROOT>/vendor/twig/twig/src/Extension/CoreExtension.php:2116 [__TwigTemplate_ff43e2ad0e9945ae534d1a4bb3e78246->{closure}()]
  14. <ROOT>/cache/themes/cambien.com.vn/14/149be277eb22a561f5ee5e4af7cc10e5.php:45 [Twig\Extension\CoreExtension::captureOutput()]
  15. <ROOT>/vendor/twig/twig/src/Template.php:402 [__TwigTemplate_ff43e2ad0e9945ae534d1a4bb3e78246->doDisplay()]
  16. <ROOT>/cache/themes/cambien.com.vn/4e/4e85bab13aca52e623002b156a1baa87.php:49 [Twig\Template->yield()]
  17. <ROOT>/vendor/twig/twig/src/Template.php:402 [__TwigTemplate_b56943f50c32501a85ba95d735820700->doDisplay()]
  18. <ROOT>/vendor/twig/twig/src/Template.php:358 [Twig\Template->yield()]
  19. <ROOT>/vendor/twig/twig/src/Template.php:373 [Twig\Template->display()]
  20. <ROOT>/vendor/twig/twig/src/TemplateWrapper.php:51 [Twig\Template->render()]
  21. phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/View/VSView.php:372 [Twig\TemplateWrapper->render()]
  22. phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/View/VSView.php:251 [VSView->__doOutput()]
  23. <ROOT>/modules/extends/Product/VSProductPublicController.php:315 [VSView->render()]
  24. phar:///home/cambien.lpw.vn/public_html/config/libraries.dll/src/Controller/VSController.php:171 [VSProductPublicController->category()]
  25. <ROOT>/vsindex.php:65 [VSController->load()]