/** * upgrade all child elements of an item * * @param int $id * @param bool $mode */ function upgradeChilds($id, $mode = Scanner::SCAN_RECURSIVE) { $children = $this->legacy->getChildren($id); foreach ($children as $child) { $childData = $this->getNewData($child); \OC_Hook::emit('\\OC\\Files\\Cache\\Upgrade', 'migrate_path', $child['path']); if ($childData) { $this->insert($childData); if ($mode == Scanner::SCAN_RECURSIVE) { $this->upgradeChilds($child['id']); } } } }
public static function do_shortcode($atts) { // Legacy if (Legacy::maybe_process_shortcode($atts)) { $posts = Legacy::get_posts($atts); $options = Legacy::get_options($atts); } else { $posts = self::get_posts($atts); $options = self::get_options($atts); } return wp_tiles()->get_tiles($posts, $options); }
public function bar(&$a, &$b, $c) { Legacy::bar($a, $b, $c); }
/** * @deprecated since version 1.0 Use display tiles instead */ public function show_tiles($atts_array) { $query = Legacy::get_atts_array_query($atts_array); $opts = Legacy::convert_option_array($atts_array); return $this->display_tiles($query, $opts); }
<?php session_start(); include_once 'helpers/define.php'; include_once 'helpers/getLibs.php'; define('PATH_ROOT', __DIR__); define('PATH_FRAMEWORK', __DIR__ . '/framework'); //include_once 'includes/inc.php'; //include_once 'includes/functions.php'; //include_once 'includes/header.php'; //include_once 'forforms.php'; //pages genereted system getAllLibs(); $page = isset($_GET['mp']) ? $_GET['mp'] : ''; $method = isset($_GET['mt']) ? $_GET['mt'] : ''; //require 'lib/legacy.php'; $fac = new Legacy(); $fac->getPage($page, $method);