public function get_item_count() {
        $data = $this->data;

        $count = 0;
        if (isset($data[Parser::INDEX_LISTS_LIST_ITEMS])) {
            foreach ($data[Parser::INDEX_LISTS_LIST_ITEMS] as $things) {
                if (preg_match('#/items/#', $things['value'])) {
                    $count++;
                }
            }
        }

        return $count;
    }
public function get_item_count() {
        $data = $this->data;

        $count = 0;
        if (isset($data[Parser::INDEX_LISTS_LIST_ITEMS])) {
            foreach ($data[Parser::INDEX_LISTS_LIST_ITEMS] as $things) {
                if (preg_match('#/items/#', $things['value'])) {
                    $count++;
                }
            }
        }

        return $count;
    }
public function get_item_count ( ) { $ data = $ this -> data ; $ count = 0 ; if ( isset ( $ data [ Parser :: INDEX_LISTS_LIST_ITEMS ] ) ) { foreach ( $ data [ Parser :: INDEX_LISTS_LIST_ITEMS ] as $ things ) { if ( preg_match ( '#/items/#' , $ things [ 'value' ] ) ) { $ count ++ ; } } } return $ count ; }
Counts the number of items in a list.
Counts the number of items in a list .