Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 17002 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 17002 Rev 17018
Línea 69... Línea 69...
69
     * @var array
69
     * @var array
70
     */
70
     */
71
    private $config;
71
    private $config;
Línea 72... Línea 72...
72
    
72
    
-
 
73
    /**
-
 
74
     * 
-
 
75
     * @var \LeadersLinked\Plugin\CurrentUserPlugin
-
 
76
     */
-
 
77
    private  $adapter;
-
 
78
    
73
    /**
79
    /**
74
     *
80
     *
75
     * @param array $config
81
     * @param array $config
76
     * @param AdapterInterface $adapter
82
     * @param AdapterInterface $adapter
77
     * @return \LeadersLinked\Plugin\CurrentUserPlugin
83
     * @return \LeadersLinked\Plugin\CurrentUserPlugin
Línea 92... Línea 98...
92
     * @param AdapterInterface $adapter
98
     * @param AdapterInterface $adapter
93
     */
99
     */
94
    private function __construct($config, $adapter) 
100
    private function __construct($config, $adapter) 
95
    {
101
    {
96
        $this->config = $config;
102
        $this->config = $config;
-
 
103
        $this->adapter = $adapter;
Línea 97... Línea 104...
97
        
104
        
98
        $this->auth = new \Laminas\Authentication\AuthenticationService();
105
        $this->auth = new \Laminas\Authentication\AuthenticationService();
99
        $this->impersonateUser = null;
106
        $this->impersonateUser = null;
100
        $this->hasIdentity = false;
107
        $this->hasIdentity = false;
Línea 230... Línea 237...
230
    
237
    
231
    public function getCompanyImage()
238
    public function getCompanyImage()
232
    {
239
    {
Línea 233... Línea 240...
233
        if($this->company) {
240
        if($this->company) {
234
          
241
          
235
            $storage = Storage::getInstance($this->config);
242
            $storage = Storage::getInstance($this->config, $this->adapter);
Línea 236... Línea 243...
236
            return $storage->getCompanyImage($this->company);
243
            return $storage->getCompanyImage($this->company);
Línea 237... Línea 244...
237
        } 
244
        } 
238
        
245
        
239
    }
246
    }
Línea 240... Línea 247...
240
    
247
    
241
    public function getCompanyCover()
248
    public function getCompanyCover()
242
    {
249
    {
Línea 243... Línea 250...
243
        if($this->company) {
250
        if($this->company) {
Línea 244... Línea 251...
244
            
251
            
245
            $storage = Storage::getInstance($this->config);
252
            $storage = Storage::getInstance($this->config, $this->adapter);
246
            return $storage->getCompanyCover($this->company);
253
            return $storage->getCompanyCover($this->company);
Línea 247... Línea 254...
247
        }
254
        }
248
        
255
        
249
    }
256
    }
Línea 250... Línea 257...
250
    
257