WordPress.org

Plugin Directory

Changeset 594701


Ignore:
Timestamp:
09/05/12 02:10:14 (20 months ago)
Author:
toppa
Message:

version 1.3.6

Location:
toppa-plugin-libraries-for-wordpress/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • toppa-plugin-libraries-for-wordpress/trunk/ToppaAutoLoaderWp.php

    r396901 r594701  
    3333    public function includeClass() { 
    3434        if (class_exists($this->className, false)) { 
    35             return 1; 
     35            return true; 
    3636        } 
    3737 
    38         else { 
     38        elseif (file_exists($this->fullPath)) { 
    3939            return @include($this->fullPath); 
    4040        } 
  • toppa-plugin-libraries-for-wordpress/trunk/ToppaSettingsWp.php

    r490030 r594701  
    4242 
    4343        if ($preferExisting) { 
    44             $this->data = array_merge($newSettings, $this->data); 
     44            $this->data = ToppaFunctions::arrayMergeRecursiveForSettings($newSettings, $this->data); 
    4545        } 
    4646 
    4747        else { 
    48             $this->data = array_merge($this->data, $newSettings); 
     48            $this->data = ToppaFunctions::arrayMergeRecursiveForSettings($this->data, $newSettings); 
    4949        } 
    5050 
  • toppa-plugin-libraries-for-wordpress/trunk/readme.txt

    r559280 r594701  
    44Tags: agile, database, unit test, testing, autoload, autoloader, facade 
    55Requires at least: 3.0 
    6 Tested up to: 3.4 
    7 Stable tag: 1.3.5 
     6Tested up to: 3.4.1 
     7Stable tag: 1.3.6 
    88License: GPLv2 or later 
    99 
     
    1414**Overview** 
    1515 
    16 The Toppa Plugin Libraries for WordPress include several utilities for plugin developers. They facilitate the use of Agile coding techniques for developing WordPress plugins. This library is required for use of upcoming plugins from toppa.com. Each is written to conform to an object interface. This means that if you code your plugin against the interfaces, you can write unit tests for your plugin, and potentially use it outside of WordPress (you would need to write non-WordPress specific versions of the Toppa Library classes that conform to the interfaces, but you would not need to alter your plugin itself). The following libraries are included. 
     16The Toppa Plugin Libraries for WordPress include several utilities for plugin developers. They facilitate the use of Agile coding techniques for developing WordPress plugins. This library is required for use of [toppa.com plugins](http://www.toppa.com/wordpress-plugins). The following libraries are included: 
    1717 
    1818* ToppaAutoloader: gives you an easy way to autoload class files for WordPress plugins. It conforms to the [PSR-0 standard for autoloading in PHP](http://groups.google.com/group/php-standards/web/psr-0-final-proposal), except it does not yet support namespaces (since WordPress currently is not intended for use with features that were introduced in PHP 5.3). 
     19* ToppaSettings: simplifies the management of plugin settings. 
    1920* ToppaFunctionsFacade: creates a facade (wrapper) for functions that are custom to WordPress, and provides enhanced functionality for certain tasks (such as multisite plugin installations). This allows you to write your plugins without calling WordPress functions directly. This gives you the power to do two things: 1. write unit tests for your plugin, and 2. make your plugin potentially usable outside of WordPress. 
    2021* ToppaDatabaseFacade: similar in concept to ToppaFunctionsFacade, but focuses on database interactions. In addition to creating wrappers for WordPress database calls, it includes enhanced functionality for tasks such as creating custom tables. 
     
    3536 
    3637== Changelog == 
     38 
     39= 1.3.6 = 
     40 
     41* In the autoloader, check that a class file exists before loading, instead of just suppressing any include errors (this fixes a warnings issue with PHP on Windows) 
     42* In the settings manager, add handling for nested arrays in settings 
    3743 
    3844= 1.3.5 = Bug fix: assign defualt value to $outputType param in getPost() in ToppaFunctionsFacade (was causing an error in PHP 5.2.1) 
  • toppa-plugin-libraries-for-wordpress/trunk/start.php

    r559280 r594701  
    55Description: Libraries to facilitate the use of Agile coding techniques for developing WordPress plugins. Contains required libraries for using plugins from toppa.com 
    66Author: Michael Toppa 
    7 Version: 1.3.5 
     7Version: 1.3.6 
    88Author URI: http://www.toppa.com 
    99*/ 
     
    2525    $currentVersion = get_option('toppaLibsVersion'); 
    2626 
    27     if ($currentVersion != '1.3.5') { 
    28         update_option('toppaLibsVersion', '1.3.5'); 
     27    if ($currentVersion != '1.3.6') { 
     28        update_option('toppaLibsVersion', '1.3.6'); 
    2929    } 
    3030} 
Note: See TracChangeset for help on using the changeset viewer.