Skip to content

Instantly share code, notes, and snippets.

@yahyaerturan
Created December 6, 2021 07:21
Show Gist options
  • Save yahyaerturan/9945148ff5692cb8d2033250555bf9d6 to your computer and use it in GitHub Desktop.
Save yahyaerturan/9945148ff5692cb8d2033250555bf9d6 to your computer and use it in GitHub Desktop.
site_model_reference
<?php
/**
* Site_model::get_page_media()
*
* @param mixed $arguments
* @param int $id_page
* @param string $media_type
* @param int $limit
* @return
*/
function get_page_media($arguments=array(),$id_page='1',$media_type='isl',$limit=0) {
//
}
// ------------------------------------------------------------------------
/**
* Site_model::get_article_media()
*
* @param mixed $arguments
* @param int $id_article
* @param string $media_type
* @param int $limit
* @return
*/
function get_article_media($arguments=array(),$id_article='',$media_type='isl',$limit=0) {
//
}
// ------------------------------------------------------------------------
/**
* Site_model::get_sub_pages()
*
* @param mixed $arguments
* @param string $lang
* @param string $id_page
* @param string $media_type
* @param string $limit
* @param string $result_type
* @return
*/
function get_sub_pages($arguments=array(),$lang='tr',$id_page='0',$media_type='',$limit = '0',$result_type='result') {
//
}
// ------------------------------------------------------------------------
/**
* get_navigation()
*
* Gets pages list navigation
*
* @access public
* @param mixed extraction array if it is called by pages controller via autamated structure class
* @param string language
* @param string id_menu
* @param string selected recursive action (list or raw)
* @param boolean whether get only online ones
* @param string get sub pages for supplied id_page. Type Null for full breakdown. Accepts 'lang_key' and automatically converts to id_page
* @param string ul tag's class
* @param sting active class to li tag
* @param integer tells to follow nth uri segment. Default 2. (lang/controller)
* @param boolean option if span to be used in <li><a>(span)</a><li> format
* @return string
*
*/
function get_navigation($arguments=array(),$lang='tr',$id_menu='1',$type='list',$online_only=true,$max_depth='0',$sub_nav='0',$ul_class='',$active_class='', $active_segment=2,$use_span=false) {
//
}
// ------------------------------------------------------------------------
/**
* Site_model::get_articles()
*
* @param mixed $arguments
* @param string $lang
* @param mixed $id_page integer, string, array
* @param mixed $id_article integer, arraySW
* @param string $media_type
* @param string $limit
* @param string $order_by
* @param string $asc_desc
* @param string $result_type
* @return
*/
function get_articles($arguments=array(),$lang='tr',$id_page='',$id_article='',$media_type='',$limit='0',$order_by='a.logical_date',$asc_desc='desc',$result_type='result') {
//
}
// ------------------------------------------------------------------------
/**
* Site_model::get_articles_by_category()
*
* @param mixed $arguments
* @param string $lang
* @param mixed $id_page integer, string, array
* @param mixed $id_category integer, arraySW
* @param string $media_type
* @param string $limit
* @param string $order_by
* @param string $asc_desc
* @param string $result_type
* @return
*/
function get_articles_by_category($arguments=array(),$lang='tr',$id_page = 0, $id_category='',$media_type='',$limit='0',$order_by='a.logical_date',$asc_desc='desc',$result_type='result') {
//
}
// ------------------------------------------------------------------------
/**
* Site_model::get_media()
*
* @param string page or article
* @param mixed $id_page or $id_article
* @param string usage. default is 'isl'
* @param int $limit
* @param string result type. default is result
* @return
*/
function get_media($pORa='article',$id_pORa=null,$usage='isl',$limit=0,$result_type='result') {
//
}
// ------------------------------------------------------------------------
/**
* Site_model::build_custom_navigation()
*
* @param mixed $arguments
* @param mixed $data
* @param mixed $lang
* @param integer $id_page
* @param integer $depth
* @param string $active_segment
* @param string $ul_class
* @param string $li_span_class
* @param string $preset
* @return
*/
function build_custom_navigation($arguments=array(),$data=array(),$lang='tr',$id_page=null,$depth=0,$active_segment='2',$ul_class='navbar-nav',$li_span_class='glyphicon glyphicon-chevron-right',$preset='bootstrap_default') {
//
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment