AnonSec Team
Server IP : 10.2.73.233  /  Your IP : 216.73.216.59
Web Server : Apache/2.4.59 (Debian)
System : Linux polon 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
User : www-data ( 33)
PHP Version : 5.6.40-64+0~20230107.71+debian10~1.gbp673146
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/leksykografia/application/models/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/leksykografia/application/models/ProductSpeaker.php
<?php

 
class Application_Model_ProductSpeaker
{
	protected $_id;
	protected $_productId;
	protected $_active;
	protected $_title;
	protected $_function;
    protected $_logo;
    protected $_www;
    protected $_desc;
    protected $_type;

    public function __construct(array $options = null)
    {
        if (is_array($options)) {
            $this->setOptions($options);
        }
    }
 
    public function __set($name, $value)
    {
        $method = 'set' . $name;
        if (('mapper' == $name) || !method_exists($this, $method)) {
            throw new Exception('Invalid page property');
        }
        $this->$method($value);
    }
 
    public function __get($name)
    {
        $method = 'get' . $name;
        if (('mapper' == $name) || !method_exists($this, $method)) {
            throw new Exception('Invalid page property');
        }
        return $this->$method();
    }
 
    public function setOptions(array $options)
    {
        $methods = get_class_methods($this);
        foreach ($options as $key => $value) {
            $method = 'set' . ucfirst($key);
            if (in_array($method, $methods)) {
                $this->$method($value);
            }
        }
        return $this;
    }
    
    public function getOptions()
    {
        $vars = get_class_vars('Application_Model_ProductPartner');
        $data = array();
        foreach ($vars as $key => $value) {
           $data[ltrim($key,'_')] = $this->$key;
        }
       
        return $data;
    }
    
    public function setProductId($productId)
    {
    	$this->_productId = $productId ;
    	return $this;
    }
    
    public function getProductId()
    {
    	return $this->_productId;
    }
    
    public function setActive($active)
    {
    	$this->_active = $active;
    	return $this;
    }
    
    public function getActive()
    {
    	return $this->_active;
    }
    
 
    public function setTitle($title)
    {
        $this->_title = (string)$title;
        return $this;
    }
 
    public function getTitle()
    {
        return $this->_title;
    }
    
    public function setFunction($title)
    {
    	$this->_function = (string)$title;
    	return $this;
    }
    
    public function getFunction()
    {
    	return $this->_function;
    }
 
    public function setLogo($image)
    {
        $this->_logo = (string) $image;
        return $this;
    }
 
    public function getLogo()
    {
        return $this->_logo;
    }
    
    public function setWww($link)
    {
        $this->_www = (string) $link;
        return $this;
    }
 
    public function getWww()
    {
        return $this->_www;
    }
 
    
    public function setDesc($desc)
    {
        $this->_desc = (string)$desc;
        return $this;
    }
 
    public function getDesc()
    {
        return $this->_desc;
    }
    
    public function setType($type)
    {
    	$this->_type = $type;
    	return $this;
    }
    
    public function getType()
    {
    	return $this->_type;
    }
    
    
    public function setId($id)
    {
        $this->_id = (int) $id;
        return $this;
    }
 
    public function getId()
    {
        return $this->_id;
    }
}

AnonSec - 2021