File: /home/dailygoldindex/public_html/wp-content/themes/jnews/class/Walker/SelectizeWalker.php
<?php
/**
 * @author : Jegtheme
 */
namespace JNews\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;
    }
}