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 | |
| Class Mysql extends mysqli{ | |
| public function __construct($registry){ | |
| // define registry property | |
| $this->registry = $registry; | |
| // initialize parent constructor | |
| parent::__construct($this->registry->config->database->hostname, $this->registry->config->database->username, $this->registry->config->database->password, $this->registry->config->database->database); | |
| } |
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 | |
| $xml = <<<XML | |
| <dl> | |
| <dt>Cascading Style Sheets</dt> | |
| <dd><p>Style sheets are used to provide presentational suggestions.</p> | |
| <p>Documents structured using XML or HTML are able to make use of them.</p></dd> | |
| <dt>Content Management</dt> | |
| <dd>The process of collecting, managing and publishing content to various media.</dd> | |
| <dd>A dirty job that no one wants.</dd> |
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
| package net.abhinavsarkar.util; | |
| import java.util.Iterator; | |
| import java.util.concurrent.BrokenBarrierException; | |
| import java.util.concurrent.CyclicBarrier; | |
| import java.util.concurrent.ExecutorService; | |
| import java.util.concurrent.Executors; | |
| import java.util.concurrent.SynchronousQueue; | |
| import java.util.concurrent.ThreadFactory; | |
| import java.util.concurrent.TimeUnit; |
NewerOlder