Function Commandr_fs->_discern_meta_dir

Definitions

sources/commandr_fs.php

  • Get details of the current meta directory.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
&$meta_dir array Yes No required parameter N/A N/A Meta directory result: returned by reference
&$meta_root_node string Yes No required parameter N/A N/A Meta root node result: returned by reference
&$meta_root_node_type string Yes No required parameter N/A N/A Meta root node type result: returned by reference
$target_dir ?array No No Null N/A N/A Directory (null: current directory is used)

Returns

  • Current directory contents (false: error)
  • Type: ~array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get details of the current meta directory.
 *
 * @param  array $meta_dir Meta directory result: returned by reference
 * @param  string $meta_root_node Meta root node result: returned by reference
 * @param  string $meta_root_node_type Meta root node type result: returned by reference
 * @param  ?array $target_dir Directory (null: current directory is used)
 * @return ~array Current directory contents (false: error)
 */

protected function _discern_meta_dir(array &$meta_dir, string &$meta_root_node, string &$meta_root_node_type, ?array $target_dir = null)