This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use EpgData\EpgData; | |
| use EpgData\DataIterator\BroadcastIterator; | |
| use EpgData\DataIterator\CategoryIterator; | |
| use EpgData\DataIterator\ChannelIterator; | |
| use EpgData\DataIterator\GenreIterator; | |
| $epg = new EpgData('http://www.epgdata.com/index.php', 'YOUR_KEY'); | |
| $broadcasts = $epg->getBroadcastIterator(0); // offset can be 0-6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <a href="http://advertiser.com/affiliate.php?id=123" | |
| onclick="_gaq.push(['_trackEvent', 'Affiliate', 'ServerGrove', '200x200']);"> | |
| <img src="/servergrove.png" width="200" height="200"> | |
| </a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $from = new \DateTime('today'); | |
| $to = new \DateTime('tomorrow'); | |
| $products = $dm->createQueryBuilder('MyBundle:Product') | |
| ->field('created_at')->range($from, $to) | |
| ->getQuery() | |
| ->execute(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $from = new \DateTime('today'); | |
| $to = new \DateTime('tomorrow'); | |
| $in_range = array('$gte' => $from, '$lt' => $to); | |
| $products = $dm->getRepository('MyBundle:Product') | |
| ->findBy(array('created_at' => $in_range)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ git push fork master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ git add your/changes | |
| $ git -m "some meaningful comment" your/changes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ git pull origin master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ git remote add fork https://github.com/yourname/ThatLibrary.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $dm->flush(array('safe'=>true)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $dm = $this->container->get('doctrine.odm.mongodb.document_manager'); | |
| $dm->getSchemaManager()->ensureIndexes(); |