This file contains 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 | |
abstract class BaseRepository implements BaseRepositoryInterface | |
{ | |
/** | |
* The repository model | |
* | |
* @var \Illuminate\Database\Eloquent\Model | |
*/ | |
protected $model; |
This file contains 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 | |
private function getDrapeWidths(DrapeItem $drapeItem, DrapeUnit $drapeUnit, DrapeCutDefault $drapeCutDefault) | |
{ | |
// Pinch Pleat DrapeItem | |
if($drapeItem->isPinchPleat()) | |
{ | |
// Pinch Pleat Pair DrapeItem | |
if($drapeItem->isPairStack()) | |
{ |
This file contains 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
class Search extends CI_Controller | |
{ | |
$this->load->library('Haystack'); | |
// Create a new index | |
$this->haystack->create_index('cars'); | |
// Set the index to work with for the next one or more IndexTank API calls | |
$this->haystack->set_index('cars'); | |