first commit

This commit is contained in:
ryanwong
2022-06-30 05:46:02 -04:00
commit a96eaec33b
859 changed files with 199842 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
<?php
class Helpers_service
{
private $_inventory_model;
/**
* setters
*/
public function set_inventory_model($inventory_model)
{
$this->_inventory_model = $inventory_model;
}
/**
* getters
*/
public function get_word_count($id)
{
$word_count = "N/A";
$check_data = $this->_inventory_model->get($id);
if (isset($check_data->word_count))
{
$word_count = $check_data->word_count;
}
return $word_count;
}
public function get_year($id)
{
$year = "N/A";
$check_data = $this->_inventory_model->get($id);
if (isset($check_data->year))
{
$year = $check_data->year;
}
return $year;
}
}