function get_markup_types() { static $types = array(); if (!empty($types)) { return $types; } $classes = get_classes('txpmarkup'); foreach ($classes as $type) { # ignore the txpMarkup parent class if ($type != 'txpmarkup') { $types[$type] = gTxt($type); } } return $types; }
function find_class_method($parent, $method) { // find the first class from $parent or its children that has a method named $method static $methods = array(); $method = strtolower($method); if (isset($methods[$parent])) { return @$methods[$parent][$method]; } $classes = get_classes($parent); $methods[$parent] = array(); foreach ($classes as $class) { $class_methods = get_class_methods($class); $methods[$parent] = array_merge(array_combine($class_methods, array_fill(0, count($class_methods), $class)), $methods[$parent]); } return @$methods[$parent][$method]; }
if (isset($_POST['submit'])) { // page 2 $registerid = $_POST['radio']; $query = "SELECT r.fname, r.lname, c.classes\n FROM records r, classes c\n WHERE c.registerid = {$registerid} and r.registerid = c.registerid"; $table = "<table border ='1' id='table'><th align='center'>Remove</th><th align='center'>Class</th>"; try { $result = $connector->retrieve($query); } catch (Exception $e) { echo $e->getMessage(); } $fname = ucfirst($result['fname']); $lname = ucfirst($result['lname']); $header = "<h1>Classes for {$fname} {$lname}</h1>"; $class_string = $result['classes']; $classes = explode(",", $class_string); $all_classes = array_keys(get_classes()); //print_r($all_classes); $not_in = array(); foreach ($all_classes as $c) { if (!in_array($c, $classes)) { array_push($not_in, $c); } } //print_r($not_in); $select = "<select name='notin[]' id='notin' multiple='multiple'>"; foreach ($not_in as $c) { $c2 = get_classname($c); $select .= "<option value='{$c}'>{$c2}</option>"; } $select .= "</select>"; foreach ($classes as $class) {
?> </ul> <ul class="home-page-pods"> <?php dynamic_sidebar('home_page_pods'); ?> </ul> </div><!--main--> <div class="sidebar"> <!--<h2>Latest Blog Posts</h2> <ul class="latest-blog-posts"> <?php get_home_page_posts(); ?> <?php get_theme_menu_name(''); ?> </ul> <h2>Class Descriptions</h2> <?php get_classes(); ?> --> <?php dynamic_sidebar('home_page_sidebar'); ?> </div><!--sidebar--> <?php Starkers_Utilities::get_template_parts(array('parts/shared/footer', 'parts/shared/html-footer'));
function my_body_class_names($classes, $class = null) { $classes[] = get_classes('body'); return $classes; }