lib/PHPWord/PHPWord/Media.php
public static function countSectionMediaElements($key = null) {
		if(!is_null($key)) {
			return count(self::$_sectionMedia[$key]);
		} else {
			$cImages = count(self::$_sectionMedia['images']);
			$cObjects = count(self::$_sectionMedia['embeddings']);
			$cLinks = count(self::$_sectionMedia['links']);
			return ($cImages + $cObjects + $cLinks);
		}
	}
public static function countSectionMediaElements($key = null) {
		if(!is_null($key)) {
			return count(self::$_sectionMedia[$key]);
		} else {
			$cImages = count(self::$_sectionMedia['images']);
			$cObjects = count(self::$_sectionMedia['embeddings']);
			$cLinks = count(self::$_sectionMedia['links']);
			return ($cImages + $cObjects + $cLinks);
		}
	}
public static function countSectionMediaElements ( $ key = null ) { if ( ! is_null ( $ key ) ) { return count ( self :: $ _sectionMedia [ $ key ] ) ; } else { $ cImages = count ( self :: $ _sectionMedia [ 'images' ] ) ; $ cObjects = count ( self :: $ _sectionMedia [ 'embeddings' ] ) ; $ cLinks = count ( self :: $ _sectionMedia [ 'links' ] ) ; return ( $ cImages + $ cObjects + $ cLinks ) ; } }
Get Section Media Elements Count

@param string $key
@return int
Get Section Media Elements Count