Skip to content

iCalcreator/Asit

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

Asit

Asit manages collections of elements.

Class It manages array collections

  • Implement SeekableIterator, Countable and IteratorAggregate methods
  • Collection elements are searchable using
    • Iterator (et al.) methods
  • The collection element may be of any value type

Class ItList

  • Extends It
  • Assure collection elements of expected valueType

Class Asit manages assoc array collections

  • Extends It
  • The assoc element array key is used as (unique) primary key
  • A primary key may be replaced by another (unique) key
  • Has primary key collection element get-/set-methods
  • Collection elements are also searchable using
    • primary key(s)
  • For non-assoc arrays,
    • primary key is the (numeric) array index

Class AsitList

  • Extends Asit
  • Assure collection elements of expected valueType

Class Asmit

  • Extends Asit
  • Allow multiple (unique) primary keys for (each)) collection element

Class Asittag

  • Extends Asit
  • Also secondary keys, additional (non-unique) tags (aka attributes?) may be set for each element
  • Collection elements are also searchable using
    • tag(s)
    • primary key(s) + tag(s)

Class AsittagList

  • Extends Asittag
  • Assure collection elements of expected valueType

Class Asmittag

  • Extends Asmit
  • Also secondary keys, additional (non-unique) tags (aka attributes?) may be set for each element
  • Collection elements are searchable using
    • Iterator (et al.) methods
    • primary key(s)
    • tag(s)
    • primary key(s) + tag(s)

Class AsmittagList

  • Extends Asmittag
  • Assure collection elements of expected valueType

But, review pros and cons not using some PHP built-in iterator class, ex ArrayIterator!

Method summary
Sponsorship

Donation using paypal.me/kigkonsult are appreciated. For invoice, please e-mail.

INSTALL
composer require kigkonsult/asit:dev-master

Composer, in your composer.json:

{
    "require": {
        "kigkonsult/asit": "dev-master"
    }
}

Version 2.2 supports PHP 8.0, 2.0 7.4, 1.8.2 7.0.

Composer, acquire access

use Kigkonsult\Asit\Asit;
...
include 'vendor/autoload.php';

Otherwise , download and acquire

use Kigkonsult\Asit\Asit;
...
include 'pathToSource/kigkonsult/Asit/autoload.php';
Support

For support go to github.com Asit

License

This project is licensed under the LGPLv3 License

About

Asit manages assoc arrays

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages