public function getMedioteca($nb_customer = false, $force = false)
    {
        if (($this->nb_medioteca === null || $force) && !$this->isValueNull(NABU_MEDIOTECA_FIELD_ID)) {
            $this->nb_medioteca = null;
            if (($nb_final_cust = nb_grantCustomer($nb_customer, $force)) !==false) {
                $this->nb_medioteca = $nb_final_cust->getMedioteca($this);
            }
        }

        return $this->nb_medioteca;
    }
public function getMedioteca($nb_customer = false, $force = false)
    {
        if (($this->nb_medioteca === null || $force) && !$this->isValueNull(NABU_MEDIOTECA_FIELD_ID)) {
            $this->nb_medioteca = null;
            if (($nb_final_cust = nb_grantCustomer($nb_customer, $force)) !==false) {
                $this->nb_medioteca = $nb_final_cust->getMedioteca($this);
            }
        }

        return $this->nb_medioteca;
    }
public function getMedioteca ( $ nb_customer = false , $ force = false ) { if ( ( $ this -> nb_medioteca === null || $ force ) && ! $ this -> isValueNull ( NABU_MEDIOTECA_FIELD_ID ) ) { $ this -> nb_medioteca = null ; if ( ( $ nb_final_cust = nb_grantCustomer ( $ nb_customer , $ force ) ) !== false ) { $ this -> nb_medioteca = $ nb_final_cust -> getMedioteca ( $ this ) ; } } return $ this -> nb_medioteca ; }
Gets the Medioteca instance using the field value contained in parent class CNabuDataObject
@param mixed $nb_customer An instance of CNabuDataObject which contains a field named nb_customer_id or an ID.
When false, then uses as Customer the owner of the application.
@param bool $force If true forces to reload the Medioteca instance from their repository.
@return CNabuMedioteca|null Returns the Medioteca instance if setted or null if not.
Gets the Medioteca instance using the field value contained in parent class CNabuDataObject