Download the PHP package fromholdio/silverstripe-commonancestor without Composer
On this page you can find all versions of the php package fromholdio/silverstripe-commonancestor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download fromholdio/silverstripe-commonancestor
More information about fromholdio/silverstripe-commonancestor
Files in fromholdio/silverstripe-commonancestor
Download fromholdio/silverstripe-commonancestor
More information about fromholdio/silverstripe-commonancestor
Files in fromholdio/silverstripe-commonancestor
Vendor fromholdio
Package silverstripe-commonancestor
Short Description A small utility class that accepts an array of class name, compares their class ancestories, and identifies their closest common ancestor class.
License BSD-3-Clause
Homepage https://github.com/fromholdio/silverstripe-commonancestor
Package silverstripe-commonancestor
Short Description A small utility class that accepts an array of class name, compares their class ancestories, and identifies their closest common ancestor class.
License BSD-3-Clause
Homepage https://github.com/fromholdio/silverstripe-commonancestor
Please rate this library. Is it a good library?
Informations about the package silverstripe-commonancestor
silverstripe-commonancestor
A small utility class that accepts an array of class name, compares their class ancestories, and identifies their closest common ancestor class.
Class is pretty well commented, jumping into it should answer any initial questions.
Requirements
SilverStripe 4
Installation
composer require fromholdio/silverstripe-commonancestor
(Contrived) Example
Assuming a page class hierarchy of:
- SiteTree
- Page
- BlogHolder
- BlogPost
- ArticlePost
- VideoPost
- Page
The get_closest
function also accepts a second argument, which allows you to include/exclude classes that have tables ($tablesOnly
; set to false
by default).
All versions of silverstripe-commonancestor with dependencies
PHP Build Version
Package Version
Requires
silverstripe/framework Version
~4.0 || ~5.0
The package fromholdio/silverstripe-commonancestor contains the following files
Loading the files please wait ....