.

contributions/jcssmanager/install/updates/0003_num_sources_existing.php File Reference

Go to the source code of this file.

Functions

  jcssmanager_update_3 ()
  Update sources counter for existing.

Function Documentation

jcssmanager_update_3 (  ) 

Update sources counter for existing.

Definition at line 5 of file 0003_num_sources_existing.php.

00005                                 {
00006         $ret = new Status();
00007 
00008         Load::models('jcsscompressedfiles');
00009         $dao = new DAOJcsscompressedfiles();
00010         $dao->find();
00011         while($dao->fetch()) {
00012                 $d = clone($dao);
00013                 $d->num_sources = count($d->sources);
00014                 $ret->merge($d->update());
00015         }
00016         return $ret;
00017 }