public function prepareItems($items)
    {
        if (!is_array($items)) {
            return $items;
        } elseif (self::isAssoc($items)) {
            $items = $this->prepareItem($items);
        } else {
            foreach ($items as $key => $item) {
                $items[ $key ] = $this->prepareItem($item);
            }
        }
        return $items;
    }
public function prepareItems($items)
    {
        if (!is_array($items)) {
            return $items;
        } elseif (self::isAssoc($items)) {
            $items = $this->prepareItem($items);
        } else {
            foreach ($items as $key => $item) {
                $items[ $key ] = $this->prepareItem($item);
            }
        }
        return $items;
    }
public function prepareItems ( $ items ) { if ( ! is_array ( $ items ) ) { return $ items ; } elseif ( self :: isAssoc ( $ items ) ) { $ items = $ this -> prepareItem ( $ items ) ; } else { foreach ( $ items as $ key => $ item ) { $ items [ $ key ] = $ this -> prepareItem ( $ item ) ; } } return $ items ; }
Prepare elements recursive.

@param $items
@return array
Prepare elements recursive .