|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesvar (last revision 2015-06-24 15:09 UTC by admin at angosso dot net)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-06-24 16:39 UTC] cmb@php.net
-Status: Open
+Status: Not a bug
-Assigned To:
+Assigned To: cmb
[2015-06-24 16:39 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 22:00:01 2025 UTC |
Description: ------------ open_basedir Contains the API function for Post Relationships hosting *Setup * Register a relationship between post types Test script: --------------- @param $name string - the name of the relationship field name * @param $args array - the various settings * * $args['from'] (string|array) the post types that the relationship is attached to * $args['to'] (string|array) the post types that allowed to be attached */ function pr_register_post_relationship( $name, $args ) { PR_Configuration::create_instances( $name, $args ); } /etc/phpmyadmin function pr_add_relationships( $name, $from, $to ) { global $pr_relationship_manager; return $pr_relationship_manager->add_relationships( $name, $from, $to ); } @return mbiama _connector (2) _db (3) _mysqli (3) _mysqlnd (3) object */ function pr_get_relationships( $name, $from=null, $additional_args=array() ) { global $pr_relationship_manager; return $pr_relationship_manager->get_relationships( $name, $from, $additional_args ); } Expected result: ---------------- define( 'PR_Webhosting_FILE', __FILE__ ); require_once __DIR__ . '/pr_configuration.class.php'; require_once __DIR__ . '/pr_relationship_manager.class.php'; require_once __DIR__ . '/api.php';