Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
ListOrderBehavior.php
README.md

README.md

ListOrderBehavior

/**

  • ListOrderBehavior will automatically fill models list_order field to next one or if list_order is
  • already set it will update all records with larger list_order field to +1
  • If $filterAttribute is not empty, Owner class will be filtered by filterAttribute(s)
  • You may specify an active record model to use this behavior like so:
  • public function behaviors(){
  •  return [
    
  •      'ListOrderBehavior' => [
    
  •  	    'class' => 'path.to.ListOrderBehavior',
    
  •  	    'listOrderAttribute' => 'list_order_attributeName',
    
  •  	    'filterAttributes' => 'filter attribute names COMMA separated',
    
  •      ]
    
  • ];
  • }
  • @author Dragan Zivkovic dragan.zivkovic.ts@gmail.com */
You can’t perform that action at this time.