# shiftcontroller/4.9.60/hc3/_interface/iauth.php

ShiftController Employee Shift Scheduling, version 4.9.60. 23 lines.

- Page: https://pluginprobe.com/plugins/shiftcontroller/4.9.60/code/hc3/_interface/iauth.php
- Raw: https://pluginprobe.com/plugins/shiftcontroller/4.9.60/raw/hc3/_interface/iauth.php
- Modified: 2018-04-02T15:13:10+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/shiftcontroller/4.9.60/code/hc3/_interface/iauth.php#L10-L20`.

```php
<?php if (! defined('ABSPATH')) exit; // Exit if accessed directly
interface HC3_IAuth
{
	public function getCurrentUserId();
	public function getCurrentUser();

	public function getUserByToken( $token );
	public function getTokenByUser( HC3_Users_Model $user );

	// public function findByToken( $token )
	// {
	// 	$return = NULL;

	// 	$args = array();
	// 	$args[] = array('token', '=', $token);

	// 	if( $array = $this->self->read( $args ) ){
	// 		$return = array_shift( $array );
	// 	}
	// 	return $return;
	// }

}
```
