<?php
/**
 * @copyright ONE/DEPO Project
 * @license   PHP License 3.01 <http://www.php.net/license/3_01.txt>
 */


/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */

/**
 * 商品詳細キャスト品目リスト
 *
 * @package     Admin.Itemmanage.Castitem.List
 * @author      netnee H.Watanabe <hiroshi.watanabe@netnee.jp>
 * @access      public
 */
class Admin_Itemmanage_Castitem_List
{
    var $view;
    var $tname;
    
    var $result;
    var $castdivlist;
    var $perfcastlist;
    
    var $title;
    var $pagename;
    var $div;
    
    var $itemdiv;
    var $jancode;
    var $hinban;
    var $itemtitle;
    var $release_date_start;
    var $release_date_end;
    var $publish_date_start;
    var $publish_date_end;
    var $maker_capital;
    var $maker_name;
    var $media;
    var $cast;
    var $situation;
    var $photo_situation;
    var $publish_situation;
    var $sort;
    var $genre_select;
    
    var $cd;
    
    
    function execute()
    {
        $log =& LogFactory::getLog();
        $log->debug("Admin_Itemmanage_Castitem_Listが実行されました", "Admin_Itemmanage_Castitem_List#execute");
        
        $div = (empty($this->div)) ? 2 : 1;
        $this->result = $this->view->getOneItem($div);
        
        $this->perfcastlist = $this->view->getCastForItemcd($this->result[0]["itemcd"], $div);
        
        // キャスト種別取得
        $this->castdivlist = $this->tname->selectDivAll(6);
        
        return 'success';
    }
}
?>
