0

jqmPhp version 0.03

-

Version Released

A new version of jqmPhp was released. See the changes.

 

jqmPhp.php

Now you can change the library folder name easily.

21
22
23
24
25
/**
 * Sets the library folder name.
 * @var JQMPHP_FOLDER
 */
define('JQMPHP_FOLDER', 'lib', true);

jqmButton.php

Added rel and target properties.

102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
/**
     * Gets and sets the rel property.
     * @param string $value
     * @return string|jqmListitem
     */
    function rel() {
        $args = func_get_args();
        if (count($args) == 0) return $this->_rel->value();
        $this->_rel->value($args[0]);
        return $this;
    }
    /**
     * Gets and sets the target property.
     * @param string $value
     * @return string|jqmListitem
     */
    function target() {
        $args = func_get_args();
        if (count($args) == 0) return $this->_target->value();
        $this->_target->value($args[0]);
        return $this;
    }

jqmListitem.php

Added rel, target, splitRel and splitTarget properties.

113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
    /**
     * Gets and sets the rel property.
     * @param string $value
     * @return string|jqmListitem
     */
    function rel() {
        $args = func_get_args();
        if (count($args) == 0) return $this->_rel;
        $this->_rel = $args[0];
        return $this;
    }
    /**
     * Gets and sets the target property.
     * @param string $value
     * @return string|jqmListitem
     */
    function target() {
        $args = func_get_args();
        if (count($args) == 0) return $this->_target;
        $this->_target = $args[0];
        return $this;
    }

Examples

Three new examples added.

 

Download

jqmPhp version 0.03

 

0

jqmPhp version 0.01

-

jqmPhp is a package of PHP classes that facilitates the creation HTML files for use with jQuery Mobile Framework. All classes in the jqmPhp package can be converted to string and printed with an echo function.

echo(new jqmPhp());

Minimal Example

Make your first application with jqmPhp:

<?php
 include 'lib/jqmPhp.php';
 $j = new jqmPhp();
 $j->addBasicPage('', 'Hello World', 'It\'s works!');
 echo $j;
?>