get_child_classes() static public méthode

Returns array of class names $base_class children with positive values for $base_class::$contant_name.
static public get_child_classes ( $base_class, $constant_name ) : string[]
$base_class
$constant_name
Résultat string[]
Exemple #1
0
 /**
  * @return string[]
  *
  * @future Enhance this to support multiple classes per post type
  * @future Rename to post_classes() and deprecate this name
  */
 static function post_type_classes()
 {
     return WPLib::get_child_classes('WPLib_Post_Base', 'POST_TYPE');
 }
Exemple #2
0
 /**
  * @return array|mixed
  */
 static function role_classes()
 {
     return WPLib::get_child_classes('WPLib_User_Base', 'ROLE');
 }
Exemple #3
0
 /**
  * @return string[]
  *
  * @future Enhance this to support multiple classes per term type
  * @future Rename to term_classes() and deprecate this name
  */
 static function taxonomy_classes()
 {
     return WPLib::get_child_classes('WPLib_Term_Base', 'TAXONOMY');
 }