PHP utility collection with hybrid and fluent APIs.

⌈⌋ branch:  hybrid7 libraries


Check-in [037bab0b64]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add ArrayObject compatiblity (arrayExchange, getArrayCopy).
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:037bab0b644baf1af5a7d361a0e34dc0dd9bbd38
User & Date: mario 2015-02-16 20:15:17
Context
2015-02-16
20:16
Basic version, #directive preprocessing, and basic expression evaluation. No tokenization and constant / macro interpolation yet. check-in: 9dea381ebc user: mario tags: trunk
20:15
Add ArrayObject compatiblity (arrayExchange, getArrayCopy). check-in: 037bab0b64 user: mario tags: trunk
20:14
Prepare macro preprocessing build. check-in: 0627bb6e05 user: mario tags: trunk
Changes

Changes to input.php.

  1150   1150       /**
  1151   1151        * @hide Countable
  1152   1152        * 
  1153   1153        */
  1154   1154       function count() {
  1155   1155           return count($this->__vars);
  1156   1156       }
         1157  +    
         1158  +    
         1159  +    /**
         1160  +     * @contract ArrayObject::getArrayCopy()
         1161  +     *
         1162  +     */
         1163  +    function getArrayCopy() {
         1164  +        return $this->__vars;
         1165  +    }
         1166  +
         1167  +
         1168  +    /**
         1169  +     * @contract ArrayObject::exchangeArray()
         1170  +     *
         1171  +     */
         1172  +    function exchangeArray($new) {
         1173  +        list($old, $this->__vars) = array($this->__vars, $new);
         1174  +        return $old;
         1175  +    }
  1157   1176   
  1158   1177   
  1159   1178       /**
  1160   1179        * @hide Make filtering functions available as static methods
  1161   1180        *       without underscore prefix for external invocation.
  1162   1181        */ 
  1163   1182       static function __callStatic($func, $args) {