<?php
/**
 * @author : Jegtheme
 */
namespace EPIC\Walker;

Class SelectizeWalker extends \Walker
{
    public $tree_type = 'category';
    public $db_fields = array ( 'parent' => 'parent', 'id' => 'term_id' );
    public $cache = array();

    public function start_el(&$output, $object, $depth = 0, $args = array(), $current_object_id = 0)
    {
        $cacheobj = array();
        $cacheobj['object'] = $object;
        $cacheobj['depth'] = $depth;
        $cacheobj['id'] = $object->term_id;
        $cacheobj['title'] = $object->name;
        $this->cache[] = $cacheobj;
    }
}
